GetActMapVal

Category: Get*Val
Since engine version: 4.9.1.0 GWE

Description

Gets activity data from the ActMap.txt of an object.

Syntax

any GetActMapVal (string strEntry, string strAction, id idDef, int iEntryNr);

Parameters

strEntry:
Name of the entry to be retrieved
strAction:
[opt] Name of the activity of which to get an entry
idDef:
[opt] Object definition of which to get action data. If 0, the definition of the calling object is used.
iEntryNr:
[opt] Index of the value to be retrieved if an entry contains multiple values.

Example

var iActLength = GetActMapVal("Length", GetAction()) * GetActMapVal("Delay", GetAction());
Calculates the time in ticks that the current action will take
See also: GetDefCoreVal, GetObjectInfoCoreVal, GetObjectVal, GetPlayerInfoCoreVal, GetPlayerVal, GetScenarioVal
PeterW, April 2002