OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: raggy99 on 06 May 2003, 07:54:43

Title: how do i set height
Post by: raggy99 on 06 May 2003, 07:54:43
Hi i was wondering how to set the height of an air plane being flown by AI

the plane name is P1

any help would be appracated
Title: Re:how do i set height
Post by: Trenchfeet on 06 May 2003, 08:04:31
I would also like to know

I have seen it somewhere, but forget where???
Maybe on the offical forums
Title: Re:how do i set height
Post by: MadFred on 06 May 2003, 08:27:20
simple.

put this into planes init line (or activation on waypoint or trigger)

this flyinheight xx

example:

plane1 flyinheight 80

Title: Re:how do i set height
Post by: raggy99 on 06 May 2003, 08:38:28
Thank You very much
Title: Re:how do i set height
Post by: Wolfrug on 06 May 2003, 22:24:05
Actually flyinheight only applies to helicopters, so you'd have to use a little more primitive method:

place setpos[(getpos plane select 0), (getpos place select 1), height]

height being in meters above the ground. This is really the only way to make it fly any higher than is usually would, although it'll immediately start to loose height and return to its normal altitude.

Only real solution I can see would be a script. Why do you want your AI-flown aeroplane at a certain height? Maybe we can offer a workaround.

G'luck!

Wolfrug out.
Title: Re:how do i set height
Post by: macguba on 06 May 2003, 22:46:31
flyinheight does apply to planes.   They changed it.   Can't remember what upgrade it was, but in one of them they changed if from just choppers to both choppers and planes.
Title: Re:how do i set height
Post by: Tomb on 06 May 2003, 23:39:45
900 years old wolfrug is  :o forget things he does  ::) behind he muzzzt be  ::) ( ;D )


   we should seriously consider sending ol' papabear a copy of the RES upgrade someday  ::) ;D


1_46 :booty:
Title: Re:how do i set height
Post by: Wolfrug on 07 May 2003, 22:03:31
Umphhhh.  :-[ ::)

I have got RES. Only it doesn't work.  :'(


Shuddup Tomb :toocool: I was editing before your wife got pregnant with that kid that kept me up trying to answer your "how do I light a fire?" questions in the dead of the night.  >:( ;D

Times do change Tombboy. I need to learn about all these fancy new things soon.  :P Now, everyone carry on, nothing to see here :toocool:

Wolfrug out.

Title: Re:how do i set height
Post by: Tomb on 08 May 2003, 00:49:17
hehe, you were editing online but I was there, I was there, back then...
 ::) Only, I weren't aware of anything modern, like fansites or UCR's at that time; instead I spent months on getting an AI moron close to the camp fire so that HE could light it up ( ::) ;D ) making it 'ready to glow in the night' when me & my AI-gang arrived to the scene of action!  :-X :noo: ;D


ah well, crusty old WO, yanno! My kiddo have started editing now (he edit MY missions in the editor when I don't see it  >:( before I even get the chance to export them to the missions menu!  >:( :P ;D b*stard

ME: two days of frustration & hard work
HIM (he's almost 8 y.o. now): one hour of fun to blow up the whole mission!!  :'(  >:( ;D  


       :hmm: kids  ::)



*sorry d00ds, I got carried away there, I'll shuddup now*


Hope U get back to editing soon, m8  :-* :)