- Adds ammo to the character's weapon
- 0114: add_ammo_to_actor [char handle] weapon [int1] rounds [int2]
- [char handle]
- The handle of the character
- Weapon type
This opcode adds ammo to the character's weapon. In GTA III, if the character does not have the weapon, the weapon will be given to it along with ammo. In Vice City, if the character does not have the weapon or another weapon of the same slot, nothing happens. If the character does not have the weapon but does have another weapon of the same slot, ammo will be added for that weapon instead. This opcode was never called in the original script of GTA III. Legacy documentations had incorrectly described this opcode as setting ammo and working only while in a car.
add, character, actor, weapon, ammo
- 0113, adds ammo to the player's weapon