Jump to content
Sign in to follow this  
Albert Schweitzer

make a car to drive straight

Recommended Posts

I need a car to go straight and fully ignore the ordinary path-finding function. I want to know that for two reasons A) to learn the logic of it and B) to make a movie shot of a car driving over a ramp. Unfortunately it wont do it if I leave AI enabled.

So you dont have to do the effort to write a time-consuming script for me taking all options into consideration, I just need simple-stupid solution that only works for one shot. It doesnt matter if the car keeps driving towards panama afterwards! biggrin_o.gif

P.S. I used the search function before posting this including the terms crash, disableAI, car ..... so please apologise if the right search-term didnt come into my mind.

Share this post


Link to post
Share on other sites
I need a car to go straight and fully ignore the ordinary path-finding function. I want to know that for two reasons A) to learn the logic of it and B) to make a movie shot of a car driving over a ramp. Unfortunately it wont do it if I leave AI enabled.

So you dont have to do the effort to write a time-consuming script for me taking all options into consideration, I just need simple-stupid solution that only works for one shot. It doesnt matter if the car keeps driving towards panama afterwards!   biggrin_o.gif

P.S. I used the search function before posting this including the terms crash, disableAI, car ..... so please apologise if the right search-term didnt come into my mind.

If you want it really simple..

this setvelocity [x,y,z]

wink_o.gif

Share this post


Link to post
Share on other sites

yes, I understand, but it only keeps driving a couple of metres. I can use it to substitute the ramp, was that the point you were trying to make! smile_o.gif

Share this post


Link to post
Share on other sites

Make it a script and loop it.

Like so:

#loop

codecodecode

goto "loop"

Share this post


Link to post
Share on other sites

Yes, the looping thing I tried but this rather looks like a lag than a driving car! Is there no other possibility that comes to your mind where I can simply disable AI and tell the car to drive forward! smile_o.gif

Share this post


Link to post
Share on other sites

Sorry, but I have to kick this thread to the top again. Has anyone a different advise for me to solve this problem?

Share this post


Link to post
Share on other sites
Quote[/b] ]Has anyone a different advise for me to solve this problem?

Drive the vehicle yourself and film the action using an external camera. Heres a basic example mission.

CameraPos.zip

Activate the radio trigger, then use the direction keys to drive the car.

Share this post


Link to post
Share on other sites
Sorry, but I have to kick this thread to the top again. Has anyone a different advise for me to solve this problem?

No, you can't force AI to drive, you need to work with the vehicle itself (trying to work with the AI is hopeless here).

Share this post


Link to post
Share on other sites
Quote[/b] ]Has anyone a different advise for me to solve this problem?

Drive the vehicle yourself and film the action using an external camera. Heres a basic example mission.

CameraPos.zip

Activate the radio trigger, then use the direction keys to drive the car.

Yes, I guess thats the best way to do it. Thanks. Sometimes KISS (keep it simple & stupid) is the only feasible solution I guess.

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  

×