Script::UnitOnTaxi
function · ui · primitive
- Address
0x517a40· 113 bytes, up to0x517ab0- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 when a unit is on a taxi, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/unitverbs#player-numbers
Finding: Player numbers in ui: time, console and the remaining unit functions
GetDodgeChance(), GetBlockChance() and GetParryChance() return the float of the player field block at +0xe5c, +0xe58 and +0xe60, 0 without a
player. UnitXP(unit) and UnitXPMax(unit) return the active player's experience (+0x840) and the experience needed (+0x844); a unit that is not a player, or not
the active one, gives 0. UnitCharacterPoints(unit) returns the two counters at +0xe48 and +0xe4c for the active player and 0, 0 otherwise. GetMoney() returns the coinage (+0xf70)
and UnitOnTaxi(unit) 1 when bit 20 of the unit flags is set. HasFullControl() returns 1 for a player with bit 0 of the dword at +0x1c70 clear and health (the unit field at +0x40) above 0, else nil.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- GetUnitFromToken ui
- lua_isstring lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.