2010-08-22 13:13:17 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
|
<!DOCTYPE funcs
|
|
|
|
SYSTEM '../../../clonk.dtd'>
|
2009-05-09 13:11:51 +00:00
|
|
|
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
|
|
|
<funcs>
|
2010-08-22 13:13:17 +00:00
|
|
|
<func>
|
|
|
|
<title>SetOwner</title>
|
|
|
|
<category>Objects</category>
|
|
|
|
<subcat>Status</subcat>
|
2011-06-30 10:52:55 +00:00
|
|
|
<version>5.1 OC</version>
|
2010-08-22 13:13:17 +00:00
|
|
|
<syntax>
|
|
|
|
<rtype>bool</rtype>
|
|
|
|
<params>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>new_owner</name>
|
2011-07-20 23:42:30 +00:00
|
|
|
<desc>Player number of the new owner. <code>NO_OWNER</code> for no owner.</desc>
|
2010-08-22 13:13:17 +00:00
|
|
|
</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>
|
2011-07-20 14:22:07 +00:00
|
|
|
<code>protected func Entrance(object container) { SetOwner(container-><funclink>GetOwner</funclink>()); }</code>
|
2010-08-22 13:13:17 +00:00
|
|
|
<text>This object changes its owner when it is collected.</text>
|
|
|
|
</example>
|
|
|
|
</examples>
|
|
|
|
<related>
|
|
|
|
<funclink>SetController</funclink>
|
|
|
|
<funclink>GetOwner</funclink>
|
2010-11-25 19:23:07 +00:00
|
|
|
<funclink>MakeCrewMember</funclink>
|
2010-08-22 13:13:17 +00:00
|
|
|
</related>
|
|
|
|
</func>
|
|
|
|
<author>Sven2</author><date>2001-11</date>
|
2009-08-12 20:44:09 +00:00
|
|
|
</funcs>
|