Jump to content
Sign in to follow this  
CarlGustaffa

forceSpeed vs limitSpeed

Recommended Posts

Hi

Can anyone explain to me the difference between forceSpeed and limitSpeed?

I find it a bit strange that I have to use forceSpeed to slow a group down, instead of limitSpeed which "sounds" more correct.

ForceSpeed sounds like something you'd use to keep speed up (but the information claims it is the opposite, hence we have to highly similar commands), i.e. during getting away from scripted incoming indirect fire zones no matter the speedmode. Whereas LimitSpeed sounds like something you'd use to keep speed down, when limited speed mode is not slow enough.

In order to slow a group of infantry down compared to regular limited speed mode, I have to use forceSpeed, as limitedSpeed doesn't seem to work. So, two commands of very similar function, what is their intended use?

Share this post


Link to post
Share on other sites

I can't get either limitSpeed or forceSpeed to work.

Share this post


Link to post
Share on other sites

The biki says something about running it in a loop, that should work.

From the biki description the only difference i that limitSpeed works with km/h and forceSpeed works with m/s

Share this post


Link to post
Share on other sites
;1844071']The biki says something about running it in a loop' date=' that should work.

From the biki description the only difference i that limitSpeed works with km/h and forceSpeed works with m/s[/quote']

Yup, thanks for the help. This is the loop script that I used:

"this setVariable ["limitSpeed",5];

0=[this] spawn {

while {canMove (_this select 0) } do {

(_this select 0) limitSpeed ((_this select 0) getVariable "limitSpeed");

sleep 0.1;

};

};"

then I used this command to set the actual speed:

"<chopperName> setVariable ["limitSpeed", 100];"

Thanks for the help!

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  

×