OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ItsMeAgain on 12 Aug 2004, 00:38:45

Title: Problem with "setPos" / "setpos2"
Post 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...
Title: Re:Problem with "setheight"
Post by: Dubieman on 12 Aug 2004, 00:42:58
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. ;)
Title: Re:Problem with "setheight"
Post by: Raptorsaurus on 12 Aug 2004, 00:52:32
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.
Title: Re:Problem with "setheight"
Post by: ItsMeAgain on 12 Aug 2004, 00:57:33
thank you guys IÂ'll try that!
Title: Re:Problem with "setheight"
Post by: macguba on 12 Aug 2004, 01:43:06
AFAIK there is no command "setHeight".
Title: Re:Problem with "setPos"
Post by: ItsMeAgain on 12 Aug 2004, 16:20:29
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) ???
Title: Re:Problem with "setPos" / "setpos2"
Post by: h- on 12 Aug 2004, 16:46:02
I think you should use this instead:

http://www.ofpec.com/editors/funcref.php?filter_func=23
Title: Re:Problem with "setPos" / "setpos2"
Post by: DBR_ONIX on 12 Aug 2004, 17:54:00
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
Title: Re:Problem with "setPos" / "setpos2"
Post by: macguba on 12 Aug 2004, 19:02:39
I think its markers that are created at sealevel, but I'm also not sure.