benilla-re systems structs docs

Script::AssistUnit

function · ui · primitive

Address
0x489b80 · 183 bytes, up to 0x489c36
Signature
int __fastcall (lua_State *L)
Meaning
Selects the target of a unit and attacks it when assistAttack is set
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/targeting#assist-and-follow

Finding: Assist and follow in ui: selecting a target

AssistUnit("unit") selects the unit's own target, the GUID in its descriptor at +0x28, and, when the assistAttack option is nonzero, starts attacking it; a token that resolves to no unit shows ERR_GENERIC_NO_TARGET, and a unit with no target does nothing. FollowUnit("unit") starts the follow auto-move toward the unit for the mover, with mode 3; an unresolved token shows ERR_GENERIC_NO_TARGET. ToggleSheath() calls ToggleSheathe on the player.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

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