GTAG - Modding - Opcode Database - 0114
Opcode Database
0114
| Description | Adds the specified amount of ammo to the characters weapon, if the character has the weapon. |
|---|---|
| Parameters (v2) | 1) Actor handle (Integer) (INT) 2) Weapon ID (Integer) (INT) 3) Integer (INT) |
| Games | |
| Category | Actor, Common, Weapon |
| Command Name (IV) | ADD_AMMO_TO_CHAR |
| San Andreas | |
| sascm.ini | 0114=3,add_ammo_to_char %1d% weapon %2h% rounds %3d% |
| Example | 0114: add_ammo_to_char $PLAYER_ACTOR weapon 38 rounds 200000 |
| Command Name | ADD_AMMO_TO_CHAR |
| Vice City | |
| sascm.ini | 0114=3,set_actor %1d% car_weapon %2h% ammo_to %3d% |
| Example | 0114: set_actor $6479 weapon 23 add_ammo 3000 |
| Command Name | ADD_AMMO_TO_CHAR |
| GTA III | |
| gtascm.ini | 0114=3,set_actor %1d% car_weapon %2h% ammo_to %3d% |
| Example | 0114: set_actor $actor weapon 11 add_ammo 1000 |
| Command Name | ADD_AMMO_TO_CHAR |

