Difference between revisions of "EntityId"

From Nomad DB
m
Line 1: Line 1:
 
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.
 
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'''
 
'''Example'''
Line 9: 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 [[GetInvalidEntityId]].
 
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 ==
 
* [[GetInvalidEntityId]]
 
* [[GetInvalidEntityId]]
 
[[Category:WD2 Lua]]
 
[[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.

Related Pages