Difference between revisions of "Player keyword"
From Dragon Age Toolset Wiki
m (Fixing category) |
m |
||
Line 41: | Line 41: | ||
[[:Category:Player functions|Player functions]] | [[:Category:Player functions|Player functions]] | ||
− | [[Category: | + | [[Category:Keywords]] |
Revision as of 23:38, 2 August 2011
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"); }