Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 017B

Opcode Database

017B

DescriptionSets the amount of ammo the actor has in the specified gun.
Parameters (v2)1) Actor handle (Integer) (INT)
2) Weapon ID (Integer) (INT)
3) Integer (INT)
Gamessa vc iii
CategoryActor, Common
Command Name (IV)SET_CHAR_AMMO
San Andreas
sascm.ini017B=3,set_char_ammo %1d% weapon %2d% to %3d%
Example017B: set_char_ammo $PLAYER_ACTOR weapon 22 to 10
Command NameSET_CHAR_AMMO
Vice City
sascm.ini017b=3,set_actor %1d% weapon %2d% ammo_to %3d% ;; Never used in VC or GTA 3
Example017B: set_actor $PLAYER_ACTOR weapon 23 ammo_to 10
Command NameSET_CHAR_AMMO
GTA III
gtascm.ini017b=3,set_actor %1d% weapon %2d% ammo_to %3d%
Example017B: set_actor $actor weapon 9 ammo_to 1
Command NameSET_CHAR_AMMO

<< 017A

0180 >>