08.03.2015, 18:52
I'm trying to use this to pop tires if they are shot even if the vehicle has no driver. Works perfectly with one exception: if a player touches the vehicle if it has no passengers. I checked and GetVehicleRotationQuat causes the problems. After "touching" a vehicle, it always returns strange values:
The vehicle's position nor its rotation has changed (well, a little maybe but that's not significant). Does anyone here has a solution for this problem?
Код:
[19:19:14] HitPos = 2054.807 2593.522 7.895 [19:19:14] Quat= 0.890 -0.096 0.018 Works fine [19:19:14] VehPos = 2055.053 2595.043 7.867 [19:19:14] OffPos = 0.949 1.710 -0.349 [19:19:20] (null) [19:19:20] HitPos = 2054.748 2592.828 7.843 [19:19:20] Quat= ./,),(-*,(.000 0.000 0.000 Values after touching [19:19:20] VehPos = -0.000 -0.000 7.442 [19:19:20] OffPos = 0.949 1.710 -0.349