Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 02D8

Opcode Database

02D8

DescriptionReturns true if the actor is holding the weapon specified.
Parameters (v2)1) Actor handle (Integer) (INT)
2) Weapon ID (Integer) (INT)
Gamessa vc iii
CategoryActor, Common, Conditional, Weapon
San Andreas
sascm.ini02D8=2, is_char_holding_weapon %1d% weapon %2d%
Example02D8: is_char_holding_weapon $PLAYER_ACTOR weapon 28
Command NameIS_CURRENT_CHAR_WEAPON
Vice City
sascm.ini02d8=2, actor %1d% current_weapon == %2c%
Example02D8: actor $PLAYER_ACTOR current_weapon == 17
Command NameIS_CHAR_HOLDING_WEAPON
GTA III
gtascm.ini02d8=2, actor %1d% current_weapon == %2c%
Example02D8: actor $PLAYER_ACTOR current_weapon == 1
Command NameIS_CHAR_HOLDING_WEAPON

<< 02D7

02D9 >>