benilla-re systems structs docs

IsUnitPlayerDriven

function · objectlayer · primitive

Address
0x5fa550 · 153 bytes, up to 0x5fa5e8
Signature
uint8_t __thiscall (void *this)
Meaning
Returns 0 on flag 0x4, confused or fleeing unless flag 0x2 is set; else 1 for a free player, or its possessor's answer
Confidence
verified, proof one
Finding
objectlayer/units#player-driven-units
Test
objectlayer::is_unit_player_driven_difftest

Finding: Player-driven units in objectlayer: units

0x5fa550 says whether a unit acts under its own control: a player that no one has charmed, or a possessed unit whose possessor is such a unit. It answers 0 for a unit with flag 0x2 clear and any of the flags 0x4, confused or fleeing set.

The derivation is in the doc.

Callers 8

Callees 1

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