GetActMapVal

Category: Get*Val
Since engine version: 1.0 OC

Description

Gets activity data from the ActMap of an object.

Syntax

any GetActMapVal(string entry, string action, id definition, int entry_number);

Parameters

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

Example

var act_length = 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, 2002-04