Skip to content

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.

GetEntityIdleTime(id)
Parameter Type
id number the entity

number - seconds

if GetEntityIdleTime(horse) > 600 then DestroyEntity(horse) end

GetEntityController · GetEntities · the World entities group of the index