GetObjectVal

Category: Get*Val
Since engine version: 1.0 OC

Description

Returns the property value of an object by its name in the Objects.txt.

Syntax

any GetObjectVal(string entry, string section, int entry_number);

Parameters

entry:
Name of the entry to be retrieved.
section:
[opt] Section of the entry to be retrieved. If not specified, all sections will be searched for an entry of the specified name.
entry_number:
[opt] Index of the value to be retrieved if an entry contains multiple values.

Remark

Most useful applications for entry are already implemented in System.ocg/GetXVal.c.

Example

See also: GetActMapVal, GetDefCoreVal, GetObjectInfoCoreVal, GetPlayerInfoCoreVal, GetPlayerVal, GetScenarioVal
PeterW, 2002-04