openclonk/docs/sdk/script/fn/GameCall.xml

41 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
<func>
<title>GameCall</title>
<category>Script</category>
<subcat>Function call</subcat>
<version>5.1 OC</version>
<syntax>
<rtype>any</rtype>
<params>
<param>
<type>string</type>
<name>function</name>
<desc>Name of the scenario script function.</desc>
</param>
<param>
<type>any</type>
<name>...</name>
<desc>Up to nine parameters which are passed to the scenario script function.</desc>
<optional />
</param>
</params>
</syntax>
<desc>Calls function in the scenario script. If the function is not defined in the scenario script, this call returns <code>nil</code> and does not cause an error.</desc>
<examples>
<example>
<code>GameCall(&quot;InitializePlayer&quot;,0);</code>
<text>Causes the scenario script to re-execute intialization for the first player.</text>
</example>
</examples>
<related>
<funclink>GameCallEx</funclink>
<funclink>Call</funclink>
</related>
</func>
<author>Günther</author><date>2002-04</date>
</funcs>