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

23 lines
779 B
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
<const>
<title>this</title>
<category>Objects</category>
<version>5.1 OC</version>
<syntax><rtype>object</rtype></syntax>
<desc>Returns a pointer to the object in the scope of which the script is currently being executed.</desc>
<remark>The parameter brackets can be omitted.</remark>
<examples>
<example>
<code>var myid;
myid = this-&gt;<funclink>GetID</funclink>();</code>
<text>Stores the ID of the calling object in the thread local variable myid.</text>
</example>
</examples>
</const>
<author>jwk</author><date>2002-04</date>
</funcs>