User talk:Maikel

Revision as of 23:07, 8 January 2010 by 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...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Test for C4Script documentation


Description

Changes the owner of an object.

Syntax

bool SetOwner (int iNewOwner)

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

protected func Entrance(pContainer) { SetOwner(pContainer->GetOwner()); return(); }
This object changes its owner when it is collected.

Test for User Manual