Script::TargetByName
function · ui · primitive
- Address
0x489d60· 148 bytes, up to0x489df3- Signature
int __fastcall (lua_State *L)- Meaning
- Selects the best unit matching a name
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/targeting#targeting-by-name
Finding: Targeting by name in ui: selecting a target
TargetByName("name" [, exact]) selects the best unit of mask 8 (any unit) in mode 0. AssistByName("name") does the
same with mask 0x10 (players), then assists as AssistUnit does; with an empty name it assists the current target.
FollowByName("name" [, exact]) follows the best player, mode 2, or the current target for an empty name. A name that finds
nothing shows ERR_UNIT_NOT_FOUND when the text is nonempty, else ERR_GENERIC_NO_TARGET.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- CGGameUI::SelectTarget ui
- CGGameUI::ClosestObjectMatch ui
- CGGameUI::DisplayError ui
- GetScriptFlagArg ui
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.