Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Check speed  (Read 877 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