Nucleus handler tools โบ Docs โบ Context โบ PlayerID
Context.PlayerID
Open in the workbench (search, and try it in a handler)
Context.PlayerID: number
Zero-based index of the player/instance being set up.
In practice
The instance's player number, starting at 0. Handlers use it in Game.Play to give each instance something of its own: a different port, save slot, user id or folder name.
Is "In practice" right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback
Example: Generated from its type and default, not from the docs or Hub handlers.
var playerID = Context.PlayerID;
Is the doc right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback