GetObjectInfoCoreVal

Category: Get*Val
Since engine version: 4.9.1.0 GWE

Description

The InfoCore contains personal information of one crew member. It is stored in the player in a file with the extension c4i. Accordingly, GetObjectInfoCoreVal returns a property of a crew member by its name in the InfoCore

Syntax

any GetObjectInfoCoreVal (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

var exp = GetObjCoreExperience(obj);
Determines the experience of a crewmember. GetObjCoreExperience is a global function from GetXVal.c in the System.c4g (see remark).
The above code responds to:
var exp = GetObjectInfoCoreVal("Experience", "ObjectInfo", obj);
See also: GetActMapVal, GetDefCoreVal, GetObjectVal, GetPlayerInfoCoreVal, GetPlayerVal, GetScenarioVal
PeterW, April 2002