Handle
Removing a game object does not automatically invalidate an allocated handle:
uf = CreateUnit(Player(0), FourCC("hfoo"), -30, 0, 90)
GetHandleId(uf) --> 1049016
RemoveUnit(uf)
GetHandleId(uf) --> 1049016
uf = nil
GetHandleId(uf) --> 0
Sometimes the handle ID may be different between clients.
The handle index returned here is only a weak and not a conclusive indicator of leaking game objects. In other words, the number may be high without an actual leak.
1.24b
Generated using TypeDoc
Returns the internal index of the given handle; returns 0 if
h
isnull
.Example:
GetHandleId(Player(0)) -> 1048584