Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0AD2

Opcode Database

0AD2

DescriptionReceives the handle of the actor that is currently being aimed at by the player. This opcode can be used as a condition. If a targeted actor was found it returns true, otherwise it returns false.
Parameters (v2)1) Player handle (Integer) (INT)
2) (Returned) Actor handle (Integer) (INT)
Gamessa
CategoryCLEO 4
San Andreas
sascm.ini0AD2=2, get_char_player_is_targeting %1d% store_to %2d%
Example0AD2: get_char_player_is_targeting $PLAYER_CHAR store_to 0@
Command NameGET_CHAR_PLAYER_IS_TARGETING

<< 0AD1

0AD3 >>