benilla-re systems structs docs

Script::UnitCanAssist

function · ui · orchestration

Address
0x516bb0 · 149 bytes, up to 0x516c44
Signature
int __fastcall (lua_State *L)
Meaning
Returns 1 when one unit can assist another
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/unitverbs#faction-and-reaction

Finding: Faction and reaction in ui: time, console and the remaining unit functions

UnitFactionGroup(unit) returns the group token and its localized name for the first faction group whose mask the unit's faction template contains, and nil, nil when none. The template comes from the unit's +0x74 field, a corpse's race template, or, for a player token with no object, the race in the name cache. UnitReaction(a, b) is ui/unittokens. UnitIsEnemy(a, b) returns 1 when both resolve and UnitReaction is 1 or less, else nil; UnitCanAssist(a, b) returns 1 when both resolve and CanAssist_Unit allows it.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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