Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Check speed
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
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.
Logged
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.
Logged
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
Logged
bedges
Administrator
Re:Check speed
«
Reply #3 on:
31 Aug 2005, 21:38:40 »
the command is
speed
.
Logged
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.
Logged
bedges
Administrator
Re:Check speed
«
Reply #5 on:
01 Sep 2005, 08:09:32 »
condition field:
Code:
[Select]
speed truck_name >=15
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Check speed
Top of page