GTAG - Modding - Opcode Database - 041A
Opcode Database
041A
| Description | Gets the amount of ammo in the specified characters weapon. |
|---|---|
| Parameters (v2) | 1) Weapon ID (Integer) (INT) 2) Actor handle (Integer) (INT) 3) (Returned) Integer (INT) |
| Games | |
| Category | Actor, Weapon |
| Command Name (IV) | GET_AMMO_IN_CHAR_WEAPON |
| San Andreas | |
| sascm.ini | 041A=3,get_ammo_in_char_weapon %1d% weapon %2h% store_to %3d% |
| Example | 041A: get_ammo_in_char_weapon $PLAYER_ACTOR weapon 22 store_to 41@ |
| Command Name | GET_AMMO_IN_CHAR_WEAPON |
| Vice City | |
| sascm.ini | 041a=3,%3d% = actor %1d% weapon_ammo %2c% |
| Example | 041A: 41@ = actor $PLAYER_ACTOR weapon 17 ammo |
| Command Name | GET_AMMO_IN_CHAR_WEAPON |
| GTA III | |
| gtascm.ini | 041a=3,%3d% = actor %1d% weapon_ammo %2c% |
| Example | 041A: 41@ = actor $PLAYER_ACTOR weapon 9 ammo |
| Command Name | GET_AMMO_IN_CHAR_WEAPON |

