Functions
Last updated
Last updated
Function to start tracking an entity for its deletion
Parameters description
entityId
- the id of the entity to track
attachedInfo
- a table where you can set additional info to the properties in the event trigger
cb
- a callback function to trigger during entity check if you of course want to do something with the entity in each check or to add additional info to the properties in the event trigger but needs to be triggered on each check
Function to check if an entity is being tracked by the function
Parameters description
entityId
- the id of the entity to check
Function to get the last values set to the properties in the last check
Parameters description
entity
- the entity id to get the properties of
index
- index of the properties if you're not interested to get all the properties
(if nil
, it will return all the properties)
Function to get all tracked entities from the player
Function to stop tracking entity
Parameters description
entityId
- the entity id to remove the tracker of