User talk:Maikel
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