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
) »
2 Questions
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: 2 Questions (Read 736 times)
0 Members and 1 Guest are viewing this topic.
R3dF0x
Guest
2 Questions
«
on:
01 Jan 2003, 17:05:28 »
1. How do u get the height above ground? Do u need getpos?
2. How do u write a script that tells you which unit set off a trigger, or what kind they are, eg ship plane soldier?
Logged
icarus_uk
Members
LiarLiarPants Inflame True
Re:2 Questions
«
Reply #1 on:
01 Jan 2003, 18:03:21 »
To find the height;
Getpos
UnitName
Select 2
Returns the height of the unit above ground level. If you want the height above sea level you have to triangulate the units position. There are scripts to dothis in the snippets section (assuming they are still there).
Logged
R3dF0x
Guest
Re:2 Questions
«
Reply #2 on:
01 Jan 2003, 19:16:16 »
Thanks for that. But how do i set the height then?
Setpos
UnitName
Select 2 HEIGHT ?
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
) »
2 Questions
Top of page