Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0470

Opcode Database

0470

DescriptionReturns the ID of the characters current weapon.
Parameters (v2)1) Actor handle (Integer) (INT)
2) (Returned) Weapon ID (Integer) (INT)
Gamessa vc
CategoryActor, Common
Command Name (IV)GET_CURRENT_CHAR_WEAPON
San Andreas
sascm.ini0470=2,get_current_char_weapon %1d% store_to %2d%
Example0470: get_current_char_weapon $PLAYER_ACTOR store_to 76@
Command NameGET_CURRENT_CHAR_WEAPON
Vice City
sascm.ini0470=2,%2d% = actor %1d% armed_weapon
Example0470: $3125 = actor $player_actor armed_weapon
Command NameGET_CURRENT_CHAR_WEAPON

<< 046F

0471 >>