GTAG - Modding - Opcode Database - 017B
Opcode Database
017B
| Description | Sets 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) |
| Games | |
| Category | Actor, Common |
| Command Name (IV) | SET_CHAR_AMMO |
| San Andreas | |
| sascm.ini | 017B=3,set_char_ammo %1d% weapon %2d% to %3d% |
| Example | 017B: set_char_ammo $PLAYER_ACTOR weapon 22 to 10 |
| Command Name | SET_CHAR_AMMO |
| Vice City | |
| sascm.ini | 017b=3,set_actor %1d% weapon %2d% ammo_to %3d% ;; Never used in VC or GTA 3 |
| Example | 017B: set_actor $PLAYER_ACTOR weapon 23 ammo_to 10 |
| Command Name | SET_CHAR_AMMO |
| GTA III | |
| gtascm.ini | 017b=3,set_actor %1d% weapon %2d% ammo_to %3d% |
| Example | 017B: set_actor $actor weapon 9 ammo_to 1 |
| Command Name | SET_CHAR_AMMO |

