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
) »
getting a units height
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: getting a units height (Read 424 times)
0 Members and 1 Guest are viewing this topic.
supergruntsb78
Guest
getting a units height
«
on:
23 Feb 2005, 03:42:08 »
i have been seaching as an idiot (probably missed it as an idiot too) but i cant seem to find anything about getting a units height
what i need is a command to check the height of a helicopter and when he reaches a certain height (in this case < 2) (troops getting in ) it needs to activate a text (lets go guys come on lets go go go !!! )
could anybody help me please ? pretty pretty please ??
Logged
Triggerhappy
Contributing Member
Llama, it's what's for dinner.
Re:getting a units height
«
Reply #1 on:
23 Feb 2005, 04:29:47 »
?(getpos heli select 2) < 2: "text stuff"
where heli is chopper name and, well i HOPE you can figure out what "text stuff" is ;D
Logged
Sliding plane crash script
Arrest script
supergruntsb78
Guest
Re:getting a units height
«
Reply #2 on:
23 Feb 2005, 13:36:06 »
thanks and yes i can figure out what the text stuff means (i hope as offcourse im an idiot
)
Logged
StonedSoldier
Guest
Re:getting a units height
«
Reply #3 on:
23 Feb 2005, 13:38:52 »
using
if
would be fine if you wanted the script to do something while it was waiting for the height to be under 2, but in most cases i prefer not to use loops, so maybe try
@(getpos heli select 2)<2
hint "Altitude Under 2!"
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
) »
getting a units height
Top of page