Player keyword

From Dragon Age Toolset Wiki
Jump to: navigation, search

The player type represents a player slot.

Literals

There is no literal for the player type.

Conversion

There is no explicit or implicit conversion to or from the player type.

Persistence

The following functions allow a player to exist outside of the scope of the current script by storing it on an object:

The following functions allow a player which exist outside of the scope of the current script to be used in the current script by retrieving it from an object:

Remarks

The player type is an artefact from or a placeholder for a multi-player version of Dragon Age. With the exception of the two functions mentioned above all reference to the player type in script.ldf have been replaced by the object type.

Examples

void main()
{
    // uninitialised
    player pDefault;
 
    // initialised using a function
    player pFunction = GetLocalPlayer(GetModule(),  "current_player");
}

See Also

Player functions