User talk:Maikel: Difference between revisions

Maikel (talk | contribs)
Created page with 'Test for C4Script documentation == Description == Changes the owner of an object. == Syntax == <code> bool SetOwner (int iNewOwner) </code> == Parameter == '''iNewOwner:''' P...'
 
Maikel (talk | contribs)
No edit summary
Line 1: Line 1:
Test for C4Script documentation
Test for Tutorial: Creating a parkour


 
=== Scenario script ===
== Description ==
Changes the owner of an object.
 
== Syntax ==
<code>
bool SetOwner (int iNewOwner)
</code>
 
== Parameter ==
'''iNewOwner:'''
Player number of the new owner. -1 or NO_OWNER for no owner.
 
== Remark ==
This function also changes the controller to the new owner.
 
== Example ==
<code>
protected func Entrance(pContainer) { SetOwner(pContainer->GetOwner()); return(); }
</code><br />
This object changes its owner when it is collected.
 
Test for User Manual

Revision as of 13:52, 2 November 2010

Test for Tutorial: Creating a parkour

Scenario script