GetObjectVal

Category: Get*Val
Since engine version: 4.9.1.0 GWE

Description

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

Syntax

any GetObjectVal (string strEntry, string strSection, object pObj, int iEntryNr);

Parameters

strEntry:
Name of the entry to be retrieved
strSection:
[opt] Section of the entry to be retrieved. If 0, all sections will be searched for an entry of the specified name.
pObj:
[opt] Object of which you want to retrieve an entry. Can be 0 in local calls.
iEntryNr:
[opt] Index of the value to be retrieved if an entry contains multiple values.

Remark

Most useful applications for strEntry are already implemented in System.c4g/GetXVal.c

Example

see GetDefCoreVal
See also: GetActMapVal, GetDefCoreVal, GetObjectInfoCoreVal, GetPlayerInfoCoreVal, GetPlayerVal, GetScenarioVal
PeterW, April 2002