GTAG - Modding - Opcode Database - 02D8
Opcode Database
02D8
| Description | Returns true if the actor is holding the weapon specified. |
|---|---|
| Parameters (v2) | 1) Actor handle (Integer) (INT) 2) Weapon ID (Integer) (INT) |
| Games | |
| Category | Actor, Common, Conditional, Weapon |
| San Andreas | |
| sascm.ini | 02D8=2, is_char_holding_weapon %1d% weapon %2d% |
| Example | 02D8: is_char_holding_weapon $PLAYER_ACTOR weapon 28 |
| Command Name | IS_CURRENT_CHAR_WEAPON |
| Vice City | |
| sascm.ini | 02d8=2, actor %1d% current_weapon == %2c% |
| Example | 02D8: actor $PLAYER_ACTOR current_weapon == 17 |
| Command Name | IS_CHAR_HOLDING_WEAPON |
| GTA III | |
| gtascm.ini | 02d8=2, actor %1d% current_weapon == %2c% |
| Example | 02D8: actor $PLAYER_ACTOR current_weapon == 1 |
| Command Name | IS_CHAR_HOLDING_WEAPON |

