Home   Help Search Login Register  

Author Topic: Check speed  (Read 665 times)

0 Members and 1 Guest are viewing this topic.

pazuzu

  • Guest
Check speed
« on: 31 Aug 2005, 21:10:30 »
How do I check the speed of a vehicle?

I want to use it as a condition for a trigger. Like setting a speed limit on a truck so if it goes too fast the enemy will start firing on it.

Thanks.

bored_onion

  • Guest
Re:Check speed
« Reply #1 on: 31 Aug 2005, 21:13:45 »
try the coref in the ed depot. there is a command called "speed", i think.  

Offline 456820

  • Contributing Member
  • **
Re:Check speed
« Reply #2 on: 31 Aug 2005, 21:25:48 »
i thought it was getspeed ? eg
_speed = getspeed vechile_name

but i havent used it in ages but i remember seeing it like that somethwere

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Check speed
« Reply #3 on: 31 Aug 2005, 21:38:40 »
the command is speed .

pazuzu

  • Guest
Re:Check speed
« Reply #4 on: 01 Sep 2005, 07:34:03 »
I did check the comref and saw the command but I don't know what to do with it.

I want a truck in my mission to have a speed limit of 10 or 15 kmph and if it goes faster a trigger is fired.

What would I use for condition?

Thanks again.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Check speed
« Reply #5 on: 01 Sep 2005, 08:09:32 »
condition field:

Code: [Select]
speed truck_name >=15