C4 Engine Terathon Software C4 Engine API Documentation

• Controller System

API Links
Developer Links

Controller::GetControllerIndex

Defined in:  C4Controller.h
Returns the World Manager controller index.
Prototype

long GetControllerIndex(voidconst;

Description
The GetControllerIndex function returns the controller index that is assigned by the World Manager. Every controller is assigned a unique index by the server machine in a multiplayer game so that a particular controller can be identified on every machine in the game. A controller index is passed to the constructor of any ControllerMessage object in order to specify the message's destination.
See Also

ControllerReg

ControllerMessage