// N_0x51f30db60626a20e
BOOL 0x51F30DB60626A20E(Vehicle vehicle, float x, float y, float z, float rotX, float rotY, float rotZ, int p7, Any p8);
Parameters:- vehicle:
the target vehicle
- x:
vehicle location
- y:
vehicle location
- z:
vehicle location
- rotX:
some kind of vehicle rotation value
- rotY:
some kind of vehicle rotation value
- rotZ:
some kind of vehicle rotation value
- p7:
usually 2
- p8:
usually 1
Returns: A BOOL value, purpose unknown.
Usex in decompiled scripts in combination with _GET_VEHICLE_SUSPENSION_BOUNDS
.
NativeDB Introduced: v1180
// Example from fm_bj_race_controller.c
if (!VEHICLE::_0x51F30DB60626A20E(uParam0->f_26, uParam0->f_12.f_3, uParam0->f_12, 2, 1) && !func_282(uParam0->f_6))
{
VEHICLE::_GET_VEHICLE_SUSPENSION_BOUNDS(*uParam0, &vVar15, &uVar16);
VEHICLE::_GET_VEHICLE_SUSPENSION_BOUNDS(uParam0->f_26, &vVar17, &uVar18);
fVar19 = SYSTEM::VDIST2(0f, 0f, vVar15.z, 0f, 0f, vVar17.z);
uParam0->f_12.f_3.f_2 = (uParam0->f_12.f_3.f_2 + fVar19);
if (!VEHICLE::_0x51F30DB60626A20E(uParam0->f_26, uParam0->f_12.f_3, uParam0->f_12, 2, 1))
{
uParam0->f_12.f_3 = { uParam0->f_6 };
uParam0->f_12 = { uParam0->f_9 };
}
}