Skip to content

GetEntityController

The player whose client simulates the entity.

A horse’s controller is the player who rides or minds it; a dog’s is its master for life; a pickup, a prop and an actor have none (the server itself moves an actor).

GetEntityController(id)
Parameter Type
id number the entity

number - a pid; nil when nobody controls it

if GetEntityController(horse) == nil then Log("horse", horse, "stands alone") end

SetEntityController · GetEntityRider · the World entities group of the index