benilla-re systems structs docs

Script::UnitIsTappedByPlayer

function · ui · orchestration

Address
0x519d00 · 108 bytes, up to 0x519d6b
Signature
int __fastcall (lua_State *L)
Meaning
Pushes 1 when UNIT_DYNAMIC_FLAGS bit 0x8 is set, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/unitinfo#tapped-and-the-dynamic-flags

Finding: Tapped and the dynamic flags in ui: unit presence, flags, classification and type

UnitIsTapped(unit) is 1 when UNIT_DYNAMIC_FLAGS (+0x224) has bit 0x4; UnitIsTappedByPlayer(unit) when it has bit 0x8. Both raise on a missing argument and answer nil for an unresolved unit. The client reads the word in eight places by bit:

bitmeaningreader
0x1lootable: sparkle on, tutorial 60x600440
0x2shown by tracking0x5ed244
0x4tapped; a change signals UNIT_FACTION (id 29)0x6005a1, 0x519cd0
0x8tapped by the player0x519d40 only
0x10has special tooltip information0x52a8ea
0x20dead, beside health22 load sites

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

Calls and jumps by a bare address, from tables/calls.tsv.