Quantcast

Jump to content

» «
Photo

Check reverse

1 reply to this topic
bttf92
  • bttf92

    Player Hater

  • Members
  • Joined: 09 Jul 2008

#1

Posted 10 September 2013 - 12:59 PM

Hi!

 

How I discover if a car is going backwards? I tried Car.Velocity and Car.Direction but without results. And .Speed gives always the absolute value.


nixolas1
  • nixolas1

    Creator/Destroyer

  • Members
  • Joined: 23 Dec 2008
  • None

#2

Posted 11 September 2013 - 08:59 AM

In c++ you can do 

Vector3 v;
GetCarSpeedVector(veh, &v, true);
if(v.Y<0)reverse=true;

(i think it is v.Y, but it might be v.X)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users