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).
Syntax
Section titled “Syntax”GetEntityController(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”number - a pid; nil when nobody controls it
Example
Section titled “Example”if GetEntityController(horse) == nil then Log("horse", horse, "stands alone") endSee also
Section titled “See also”SetEntityController · GetEntityRider · the World entities group of the index
