017B
Description
- Sets the character's weapon ammo
Syntax
- 017B: set_actor [char handle] weapon [int1] ammo_to [int2]
Parameter
- [char handle]
- The handle of the character
- [int1]
- [int2]
- Ammo
This opcode sets the character's weapon ammo. If the character does not have the weapon, the weapon is given to it. Unlike opcode 01B2, it sets rather than adds to the ammo count and does not set the weapon as the current one for the character. You have to use opcode 01B9 to set it as the current one. When the character dies, it drops the weapon as a pickup type 4 with predefined ammo count. This opcode was never called in the original script of GTA III.
Keywords
set, character, actor, weapon, ammo