• Returns the internal index of the given handle; returns 0 if h is null.

    Example: GetHandleId(Player(0)) -> 1048584

    Parameters

    Returns number

    Note

    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

    Note

    Sometimes the handle ID may be different between clients.

    Note

    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.

    Patch

    1.24b

Generated using TypeDoc