Home   Help Search Login Register  

Author Topic: LimitSpeed Command  (Read 1581 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
LimitSpeed Command
« 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 ?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: LimitSpeed Command
« Reply #1 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:
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: LimitSpeed Command
« Reply #2 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