ZombieIds
Added in version v1.5.0.
local ZombieIds = require("Starlit/ZombieIds")
The ZombieIds module provides persistent identifiers for zombies. The IDs are guaranteed to be reasonably unique, and stable between library versions. Using identifiers for zombies is often important as their objects are pooled, so object identity comparisons are not reliable; the same IsoZombie object used for one zombie may be reused for another zombie later.
Compared to other libraries that provide similar zombie ids, I have found this to be the fastest implementation by far.
Functions
-
ZombieIds.get(zombie:
IsoZombie
) id:integer
Returns the ID of a zombie.
- Parameters:
zombie (
IsoZombie
) – The zombie.- Returns:
id (
integer
) – The zombie’s id.