Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 041A

Opcode Database

041A

DescriptionGets the amount of ammo in the specified characters weapon.
Parameters (v2)1) Weapon ID (Integer) (INT)
2) Actor handle (Integer) (INT)
3) (Returned) Integer (INT)
Gamessa vc iii
CategoryActor, Weapon
Command Name (IV)GET_AMMO_IN_CHAR_WEAPON
San Andreas
sascm.ini041A=3,get_ammo_in_char_weapon %1d% weapon %2h% store_to %3d%
Example041A: get_ammo_in_char_weapon $PLAYER_ACTOR weapon 22 store_to 41@
Command NameGET_AMMO_IN_CHAR_WEAPON
Vice City
sascm.ini041a=3,%3d% = actor %1d% weapon_ammo %2c%
Example041A: 41@ = actor $PLAYER_ACTOR weapon 17 ammo
Command NameGET_AMMO_IN_CHAR_WEAPON
GTA III
gtascm.ini041a=3,%3d% = actor %1d% weapon_ammo %2c%
Example041A: 41@ = actor $PLAYER_ACTOR weapon 9 ammo
Command NameGET_AMMO_IN_CHAR_WEAPON

<< 0419

041C >>