• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] HELP! How to Get Status If The Vehicle go Flipped while destroyed?
#5
Not if nobody is in the vehicle;
Quote:How can the vehicle flip itself
Might be a language barrier but I assumed (thanks to that line) the vehicle would be unmanned, in which case you would need the functions I sent.
Quote:(...) the vehicle has really flipped and is about to explode
GetVehicleRotation() to detect if it is flipped, GetVehicleHealth() to detect if it is on fire and thus about to explode. They start burning when the health is below 250, as stated on the wiki page. If it is, you indeed use SetVehicleZAngle() to flip it back.

Quote:SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
You might want to set it to the angle it's already facing. Otherwise it will always face North when flipping it. May be a tad inconvenient.
  Reply


Messages In This Thread
RE: HELP! How to Get Status If The Vehicle go Flipped while destroyed? - by Kwarde - 2021-07-11, 08:54 AM

Forum Jump: