OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SharkDog on 04 Apr 2003, 18:44:38

Title: tnak fireing in air?
Post by: SharkDog on 04 Apr 2003, 18:44:38
i have this in a small script.

#loop
tank dofire taget1
goto "loop"


I want that target to be somewere in the air at about 100meters 500meters away from the tank, so it will look liek its giving arty support, and do i use a marker in the air or an object.

Thanks in advance.
Title: Re:tnak fireing in air?
Post by: headshot_snipe on 04 Apr 2003, 21:31:17
this is just an idea but you could use an invisible H and in its init type:

this setpos[ getpos this select 0, getpos this select 1, distanceintheair]

i haven't tryed this, the H might just fall. go ahead and try. then target it.
hope this solves your prob
Title: Re:tnak fireing in air?
Post by: SharkDog on 05 Apr 2003, 00:28:22
i tried it with alot of things but it just doesnt fire in the air.
Title: Re:tnak fireing in air?
Post by: NoFear on 05 Apr 2003, 01:31:40
Try puttin the invisible h closer, so it is in eyerange from the tank. I belive all units in ofp need to be in eyerange of the object their firing at or it would be indirect fire wich the ofp engine sadly enough doesent support.
Title: Re:tnak fireing in air?
Post by: Chris Death on 05 Apr 2003, 03:59:00
Or take yer time and read through the thread (linked below),
where MI_Fred and me posted some scripts simulating them
firing in the air. The scripts were made for artellery in first
case, but you can use them for tanks aswell  ;)

http://www.ofpec.com/yabbse/index.php?board=9;action=display;threadid=6999

~S~ CD