GetEntityStates
An entity’s bag as a table.
Syntax
Section titled “Syntax”GetEntityStates(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity’s id |
Returns
Section titled “Returns”table - {key = value}, empty when the entity has no bag or is out of view
Example
Section titled “Example”for key, value in pairs(GetEntityStates(id)) do print(key, value) endSee also
Section titled “See also”GetEntityState · the State bags group of the index
