GTAG - Modding - Opcode Database - 0470
Opcode Database
0470
| Description | Returns the ID of the characters current weapon. |
|---|---|
| Parameters (v2) | 1) Actor handle (Integer) (INT) 2) (Returned) Weapon ID (Integer) (INT) |
| Games | |
| Category | Actor, Common |
| Command Name (IV) | GET_CURRENT_CHAR_WEAPON |
| San Andreas | |
| sascm.ini | 0470=2,get_current_char_weapon %1d% store_to %2d% |
| Example | 0470: get_current_char_weapon $PLAYER_ACTOR store_to 76@ |
| Command Name | GET_CURRENT_CHAR_WEAPON |
| Vice City | |
| sascm.ini | 0470=2,%2d% = actor %1d% armed_weapon |
| Example | 0470: $3125 = actor $player_actor armed_weapon |
| Command Name | GET_CURRENT_CHAR_WEAPON |

