GTAG - Modding - Opcode Database - 04B8
Opcode Database
04B8
| Description | Returns the weapon id, ammo and model from the specified slot. |
|---|---|
| Parameters (v2) | 1) Actor handle (Integer) (INT) 2) Integer (INT) 3) (Returned) Weapon ID (Integer) (INT) 4) (Returned) Integer (INT) 5) (Returned) Model (Integer) (MODEL) |
| Games | |
| Category | Actor, Common |
| Command Name (IV) | GET_CHAR_WEAPON_IN_SLOT |
| San Andreas | |
| sascm.ini | 04B8=5,get_char_weapon_in_slot %1d% slot %2h% store_weapon_to %3d% ammo_to %4d% model_to %5d% |
| Example | 04B8: get_char_weapon_in_slot $PLAYER_ACTOR slot 2 store_weapon_to 380@ ammo_to 381@ model_to 381@ |
| Command Name | GET_CHAR_WEAPON_IN_SLOT |
| Vice City | |
| sascm.ini | 04B8=5,get_char_weapon_in_slot %1d% slot %2h% store_weapon_to %3d% ammo_to %4d% model_to %5d% |
| Example | 04B8: get_char_weapon_in_slot $player_actor slot 4 store_weapon_to $869 ammo_to $852 model_to $870 |
| Command Name | GET_CHAR_WEAPON_IN_SLOT |

