Category: Objects
/ Status
Since engine version: 1.0 OC
SetController
Description
Changes the controller of the calling object.
Syntax
bool SetController(int player);
Parameter
- player:
- Player number of the new controller.
NO_OWNER
for no controller.
Example
protected func Entrance(object container) { SetController(container->GetController()); }
This object changes its controller when it is collected.