Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

addController

addController(authority, addControllerOptions): Entity

Makes a room controller: an entity the room’s own systems drive other entities through, by control and writeInput, as an NPC racer reads throttle and steer from it exactly as a player’s kart reads them from her. It is no player, never streams, and readPlayers leaves it out; destroying it releases what it controls. An entity it controls is simulated on the room alone, and reads neutral input on a tick no system wrote its input for. As Unreal’s AAIController.

Parameter Type
authority Authority
addControllerOptions AddControllerOptions

Entity