2010-08-22 13:13:17 +00:00
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
< !DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
2009-05-09 13:11:51 +00:00
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs >
<func >
<title > GetObjectInfoCoreVal</title>
<category > Get*Val</category>
2011-06-30 10:52:55 +00:00
<version > 5.1 OC</version>
2009-05-09 13:11:51 +00:00
<syntax >
<rtype > any</rtype>
<params >
<param >
<type > string</type>
2010-03-15 22:55:14 +00:00
<name > entry</name>
2010-08-22 13:13:17 +00:00
<desc > Name of the entry to be retrieved.</desc>
2009-05-09 13:11:51 +00:00
</param>
<param >
<type > string</type>
2010-03-15 22:55:14 +00:00
<name > section</name>
2011-07-30 23:32:02 +00:00
<desc > Section of the entry to be retrieved. If not specified, all sections will be searched for an entry of the specified name.</desc>
2010-08-22 13:13:17 +00:00
<optional />
2009-05-09 13:11:51 +00:00
</param>
<param >
<type > int</type>
2010-03-15 22:55:14 +00:00
<name > entry_number</name>
2010-08-22 13:13:17 +00:00
<desc > Index of the value to be retrieved if an entry contains multiple values.</desc>
<optional />
2009-05-09 13:11:51 +00:00
</param>
</params>
</syntax>
2011-06-25 13:31:29 +00:00
<desc > The InfoCore contains personal information of one crew member. It is stored in the player in a file with the extension oci. Accordingly, GetObjectInfoCoreVal returns a property of a crew member by its name in the InfoCore.</desc>
<remark > Most useful applications for entry are already implemented in System.ocg/GetXVal.c.</remark>
2009-05-09 13:11:51 +00:00
<examples >
<example >
2010-08-22 13:13:17 +00:00
<code > var exp = obj-> GetObjCoreExperience();</code>
2011-06-25 13:31:29 +00:00
<text > Determines the experience of a crewmember. GetObjCoreExperience is a global function from GetXVal.c in the System.ocg (see remark).<br /> The above code responds to:</text>
2010-08-22 13:13:17 +00:00
<code > var exp = obj-> GetObjectInfoCoreVal(" Experience" , " ObjectInfo" );</code>
2009-05-09 13:11:51 +00:00
</example>
</examples>
<related >
<funclink > GetDefCoreVal</funclink>
<funclink > GetObjectVal</funclink>
<funclink > GetActMapVal</funclink>
<funclink > GetScenarioVal</funclink>
<funclink > GetPlayerVal</funclink>
<funclink > GetPlayerInfoCoreVal</funclink>
</related>
</func>
2010-08-22 13:13:17 +00:00
<author > PeterW</author> <date > 2002-04</date>
2009-05-09 13:11:51 +00:00
</funcs>