Nucleus handler tools › Docs › Context › NumControllers

Context.NumControllers

Open in the workbench (search, and try it in a handler)

Context.NumControllers: number

Number of players in the session that are not keyboard players (IsKeyboardPlayer false). Nucleus only counts it in the first player's Context, before Game.Play; in every other player's Context it is 0. Context.NumKeyboards counts the keyboard players.

✎ AI-written, based on Nucleus GenericContext.cs, GenericGameHandler.cs (counting loop under if (i == 0) after CreateContext). Not from the official docs. Is it wrong? Tell us

Default: 0

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop