Difference between revisions of "EntityId"
From Nomad DB
m (Jan moved page Lua:EntityId to EntityId) |
|||
Line 8: | Line 8: | ||
== Invalid Entity Id == | == Invalid Entity Id == | ||
− | Some functions that return an Entity Id, might return one that is invalid. To check, if an Entity Id is valid, compare it against [[ | + | Some functions that return an Entity Id, might return one that is invalid. To check, if an Entity Id is valid, compare it against [[GetInvalidEntityId]]. |
+ | |||
== Related Pages == | == Related Pages == | ||
− | * [[Lua | + | * [[GetInvalidEntityId]] |
+ | [[Category:WD2 Lua]] |
Revision as of 17:53, 14 April 2020
Every Entity that is spawned into the world has an Entity Id. It is a 64-bit unsigned integer, which is represented in Lua as a string.
Example
15738498423673481953
Invalid Entity Id
Some functions that return an Entity Id, might return one that is invalid. To check, if an Entity Id is valid, compare it against GetInvalidEntityId.