GetDefCoreVal, GetActMapVal, GetObjectVal, GetScenarioVal

This family of functions provide direct access to all properties of the respective object as stored in the definition files.
Each function corresponds to the following files:
Function File
GetDefCoreVal *.c4d/DefCore.txt
GetActMapVal *.c4d/ActMap.txt
GetObjectVal *.c4s/Objects.txt
GetScenarioVal *.c4s/Scenario.txt
GetPlayerVal *.c4s/Game.txt (in Savegames)
GetObjectInfoCoreVal *.c4p/*.c4i
GetPlayerInfoCoreVal *.c4p/Player.txt
The property to be accessed is referenced through its name and section, if applicable (if no value is given for the section, all sections will be searched for the property). If a matching property was not found or does not correspond to a valid C4Script data type (e.g. ID lists) the result is 0.
If 0 is given for pObj/idDef in a call to GetObjectVal, the object or the definition of the object from which the call was made is used.
There is a number of additional wrapper functions located in System.c4g/GetXVal.c. These functions allow for easy access to various common Get*Val functions (e.g. GetObjWidth() for GetObjectVal("Width", 0, -obj-)).
Peter, November 2001