Jump to content
Sign in to follow this  
Barry the baldy

Setting a vehicles speed?

Recommended Posts

Ive done some searches and come up with a few solutions that dont work anymore.

I'm looking for a way to set a vehicles speed. For example have a tank moving forward at infantry walking speed.

The velocity and speed commands don't work anymore and I've tried the movement scripts to no avail.

Anyone managed to assign a speed to a vehicle yet?

Share this post


Link to post
Share on other sites

I was just doing this the other day. smile_o.gif

Haven't tried forceSpeed, as people are reporting is does not work currently.  Instead I used limitSpeed.

According to Kronzky's note on limitSpeed:

Quote[/b] ]Has only an temporary effect on the vehicle specified (i.e. vehicle goes back to its previous speed right away). So, in order for this command to have a real, noticeable effect, it would have to be issued continuously (e.g. via a script loop). (V1.08.5163)

So I used limitSpeed on a loop, and it worked like a charm.  I don't exactly recall the delay I was using.  I think somewhere around 1-2 seconds.  Worked great though.

It would be nice to have these commands working as they are suppose to be though, w/o having to resort to such things. whistle.gif

Another idea is to put your truck in the same group as the infantry, making sure the group speed mode is set to "LIMITED" or "NORMAL".  But if you do this you'll run into all kinds of trouble with pathfinding, especially with trucks, and especially when there are many obstacles (i.e. in the cities).

Anyhow, good luck with it.

Share this post


Link to post
Share on other sites

Thanks for the reply.

I've actually tried the method you tried via scripting but I've noticed that over long periods of time it becomes a bit of a system hog. I run an above average comp and its fine for me but others reported that as the mission went on it got slower and slower.

And yeah, attaching the vehicle to a group was the first thing I tried and, as you stated, it causes all kinds of problems. Truck starting and stopping constantly, doing crazy turns, going in circles etc.

Oh well, I'll just move onto other missions until we have a good workaround 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  

×