1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
<?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>GetMissionAccess</title>
<category>System</category>
<version>5.1 OC</version>
<syntax>
<rtype>bool</rtype>
<params>
<param>
<type>string</type>
<name>mission_access</name>
<desc>Mission access to be checked.</desc>
</param>
</params>
</syntax>
<desc>Determines whether the player already has the specified mission access password.</desc>
<remark>In a network game, this function always returns <code>false</code>. Otherwise differing local values might cause synchronization problems.</remark>
<examples>
<example>
<code><funclink>if</funclink> (!GetMissionAccess("DasWarHarteArbeit"))
{
<funclink>GainMissionAccess</funclink>("DasWarHarteArbeit");
<funclink>Message</funclink>("Congratulations, you are here for the first time!");
}</code>
<text>Displays a message if the mission access password "DasWarHarteArbeit" was not yet gained and then gives this mission access.</text>
</example>
</examples>
<related><funclink>GainMissionAccess</funclink></related>
</func>
<author>Sven2</author><date>2001-11</date>
<author>matthes</author><date>2005-02</date>
</funcs>
|