forked from Mirrors/openclonk
37 lines
1.1 KiB
XML
37 lines
1.1 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>SetOwner</title>
|
|
<category>Objects</category>
|
|
<subcat>Status</subcat>
|
|
<version>5.1 OC</version>
|
|
<syntax>
|
|
<rtype>bool</rtype>
|
|
<params>
|
|
<param>
|
|
<type>int</type>
|
|
<name>new_owner</name>
|
|
<desc>Player number of the new owner. <code>NO_OWNER</code> for no owner.</desc>
|
|
</param>
|
|
</params>
|
|
</syntax>
|
|
<desc>Changes the owner of the object.</desc>
|
|
<remark>This function also changes the controller to the new owner.</remark>
|
|
<examples>
|
|
<example>
|
|
<code>protected func Entrance(object container) { SetOwner(container-><funclink>GetOwner</funclink>()); }</code>
|
|
<text>This object changes its owner when it is collected.</text>
|
|
</example>
|
|
</examples>
|
|
<related>
|
|
<funclink>SetController</funclink>
|
|
<funclink>GetOwner</funclink>
|
|
<funclink>MakeCrewMember</funclink>
|
|
</related>
|
|
</func>
|
|
<author>Sven2</author><date>2001-11</date>
|
|
</funcs>
|