GTAG - Modding - Opcode Database - 04D3
Opcode Database
04D3
| Description | Gets the nth nearest coordinates of a path a vehicle can drive on. |
|---|---|
| Parameters (v2) | 1) X Coord (Float) (FLOAT) 2) Y Coord (Float) (FLOAT) 3) Z Coord (Float) (FLOAT) 4) (Returned) Integer (INT) 5) (Returned) X Coord (Float) (FLOAT) 6) (Returned) Y Coord (Float) (FLOAT) 7) Z Coord (Float) (FLOAT) |
| Games | |
| Category | Common, Vehicle |
| Command Name (IV) | GET_NTH_CLOSEST_CAR_NODE |
| San Andreas | |
| sascm.ini | 04D3=7,get_nth_closest_car_node %1d% %2d% %3d% nth %4h% store_to %5d% %6d% %7d% |
| Example | 04D3: get_nth_closest_car_node $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD nth 2 store_to 88@ 89@ 90@ |
| Command Name | GET_NTH_CLOSEST_CAR_NODE |
| Vice City | |
| sascm.ini | 04D3=7,get_nearest_car_path_coords_from %1d% %2d% %3d% type %4h% store_to %5d% %6d% %7d% |
| Example | 04D3: get_nearest_car_path_coords_from $4017 $4018 $4019 type 2 store_to $4017 $4018 $4019 |
| Command Name | GET_NTH_CLOSEST_CAR_NODE |

