GTAG - Modding - Opcode Database - 0AB5
Opcode Database
0AB5
| Description | This 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) |
| Games | |
| Category | CLEO 3 |
| San Andreas | |
| sascm.ini | 0AB5=3,store_closest_entities %1d% vehicle_to %2d% ped_to %3d% |
| Example | 0AB5: store_closest_entities $PLAYER_ACTOR vehicle_to 0@ ped_to 1@ |
| Command Name | STORE_CLOSEST_ENTITIES |

