SetController

Category: Objects / Status
Since engine version: 1.0 OC

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.
See also: GetController, GetKiller, SetOwner
Sven2, 2007-04