GTAG - Modding - Opcode Database - 01B2
Opcode Database
01B2
| Description | Gives a weapon to an actor with the specified amount of ammunition/bullets. The weapons model must be loaded before trying to give the weapon. The ammo is usually limited to 99999 using this opcode. |
|---|---|
| Parameters (v2) | 1) Actor handle (Integer) (INT) 2) Weapon ID (Integer) (INT) 3) Integer (INT) |
| Games | |
| Category | Actor, Common, Weapon |
| Command Name (IV) | GIVE_WEAPON_TO_CHAR |
| San Andreas | |
| sascm.ini | 01B2=3,give_weapon_to_char %1d% weapon %2d% ammo %3d% |
| Example | 01B2: give_weapon_to_char 2@ weapon 28 ammo 60 |
| Command Name | GIVE_WEAPON_TO_CHAR |
| Vice City | |
| sascm.ini | 01b2=3,give_actor %1d% weapon %2c% ammo %3d% ;; Load the weapon model before using this |
| Example | 01B2: give_actor $723 weapon 23 ammo 9999 // Load the weapon model before using this |
| Command Name | GIVE_WEAPON_TO_CHAR |
| GTA III | |
| gtascm.ini | 01b2=3,give_actor %1d% weapon %2c% ammo %3d% |
| Example | 01B2: give_actor $CHAR_GUNSHOPOWNER weapon 4 ammo 999 |
| Command Name | GIVE_WEAPON_TO_CHAR |

