This family of functions provide direct access to all properties of the respective object as stored in the definition files.
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-)
).