GetEntityIdleTime
Seconds since the entity’s pose was last reported.
A controlled horse reports its pose all the time, so its idle time stays near zero; a loose one counts up from the moment it was left. Since the creation for anything that never reported.
Syntax
Section titled “Syntax”GetEntityIdleTime(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”number - seconds
Example
Section titled “Example”if GetEntityIdleTime(horse) > 600 then DestroyEntity(horse) endSee also
Section titled “See also”GetEntityController · GetEntities · the World entities group of the index
