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 37 38
|
<?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>GetCursor</title>
<category>Objects</category>
<subcat>Crew</subcat>
<version>5.1 OC</version>
<syntax>
<rtype>object</rtype>
<params>
<param>
<type>int</type>
<name>player</name>
<desc>Player number of the player whose controlled clonk you want to determine.</desc>
</param>
</params>
</syntax>
<desc>Returns the currently controlled Clonk of a player.</desc>
<examples>
<example>
<code><funclink>if</funclink> (!GetCursor(0)) <funclink>SetCursor</funclink>(<funclink>GetHiRank</funclink>(0));</code>
<text>Selects the player's highest ranking clonk if currently no other clonk is selected.</text>
</example>
<example>
<code>GetCursor(0)-><funclink>Message</funclink>("Hooray!");</code>
<text>Displays a message above the currently selected clonk of the first player.</text>
</example>
</examples>
<related>
<funclink>GetHiRank</funclink>
<funclink>GetCrew</funclink>
</related>
</func>
<author>Sven2</author><date>2003-02</date>
</funcs>
|