Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0AB5

Opcode Database

0AB5

DescriptionThis opcode stores to the variables handles of a vehicle and ped being closest to the actor. If there's no any vehicle or ped close to him, the proper variable will contain value of -1.

Parameters:
1 = actor handle
2 = variable to store a vehicle being closest to him
3 = variable to store a ped being closest to him
Parameters (v2)1) Actor handle (Integer) (INT)
2) (Returned) Vehicle handle (Integer) (INT)
3) (Returned) Actor handle (Integer) (INT)
Gamessa
CategoryCLEO 3
San Andreas
sascm.ini0AB5=3,store_closest_entities %1d% vehicle_to %2d% ped_to %3d%
Example0AB5: store_closest_entities $PLAYER_ACTOR vehicle_to 0@ ped_to 1@
Command NameSTORE_CLOSEST_ENTITIES

<< 0AB4

0AB6 >>