OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ItsMeAgain on 12 Aug 2004, 00:38:45
-
Hey Guys...
My problem is, to get two Objects on the exact same height. The OFP Engine seems count the heigh above ground so that a lot of adjusting can become necessary....
... but IÂ'm lazy ;D ...
My Question: Is it possible to set a height above sea level with (or without) the "setPos" Command?
so far...
ps: thx for Help and sorry for bad English...
-
Err um huh?
Don't really understand what you want. :-\
You want two objects at the same height? Like if one was on a mountain, it'd be higher than the other near the ocean?
If that's the case, I have no idea. Maybe just work around it... :P
And your English was fine, I've seen much worse. ;)
-
There is a function that finds elevation above sea level, you could use that and a script to do what you need. Check the editor depot for the Seal level altitude function.
-
thank you guys IÂ'll try that!
-
AFAIK there is no command "setHeight".
-
IÂ'm Sorry I ment "setPos"...
Anyway...
I tried with the "SetPos2" function but I cant use it...
It returns nothing...
I wasnt able to find a example mission for this function...
(the link seems to be broken) ???
-
I think you should use this instead:
http://www.ofpec.com/editors/funcref.php?filter_func=23
-
Or, you can make a gamelogic (Or is it a trigger?), under the unit your setpos-ing..
And use the distance command on it and the unit..
Because gamelogics are always created as sealevel (I'm sure)
I might be wrong, and it might be triggers.. or I might be totaly wrong, and my idea wont work.. ;)
- Ben
-
I think its markers that are created at sealevel, but I'm also not sure.