Jump to content
Sign in to follow this  
cr4wl3r0

any script to make vehicle reverse ?

Recommended Posts

hi, I want to know if there is any script to make a vehicle go reverse, without turning. thanks !

Share this post


Link to post
Share on other sites

Play around with setVelocity. I don't think it'll give you the reversing lights, but it'll make you go backwards. Backwards anywhere from -1 to -1000 ;)

Share this post


Link to post
Share on other sites

I don't think the wheels will turn either with setVelocity and it probably won't look very natural.

Share this post


Link to post
Share on other sites

The wheels will be fine but the engine will sound wrong.

The problem is getting the direction right you'll have to do some maths unless you just want it to move N,S,E,W.

Place code in the init.

0=[] spawn {while {alive tank} do { tank setvelocity [2,0,0];sleep 0.001;}}

Probably easier just attach one tank to another rotated 180degres and make the first one invisible . You'll have engine sounds and it will work as I did it a while back.

Place waypoint on the invisible tank and remove fuel from the visible one.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×