OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: JasonO on 04 Mar 2007, 15:53:46

Title: LimitSpeed Command
Post by: JasonO on 04 Mar 2007, 15:53:46
Anyone had any luck with the limitspeed command?

The COMREF says llimitspeed with 2 'L's. That wouldn't let me use it with the syntax I gave it (this llimitspeed 50). I tried with 1 'L' and it let me use it. However it did not do anything. I tried the speed as 1, 5, 10 , 50 , 100 and that's it and the speed of the vehicle was never limited.

Quote
object llimitSpeed speed
Operand types:
object: Object
speed: Number
Type of returned value:
Nothing
Description:
Limit speed of given vehicle to given value (in km/h).
Used In:
ArmA

Anything im doing wrong ?
Title: Re: LimitSpeed Command
Post by: h- on 04 Mar 2007, 16:07:18
Hmm, it seems that we have a typo in the comref  :whistle:

Anyway, how did you test the command? Judging from your post you tested it from a init field?
Init fields are never a good way to test new commands, use triggers (or scripts) instead..

It works for me fine (ArmA 1.05), didn't test on human driven vehicles though..
And 'fine' is a bit relative term because it makes the vehicle (AI driven) to slow down but it speeds up again after reaching the limitSpeed value, so limitSpeed doesn't seem to be very usefull..  :thumbsdown:
Title: Re: LimitSpeed Command
Post by: JasonO on 04 Mar 2007, 18:34:12
Right ok.

So as soon as they reach their speed limit, the limit stops, therefore limiting it for a split second.

What a silly command lol