Home   Help Search Login Register  

Author Topic: tnak fireing in air?  (Read 445 times)

0 Members and 1 Guest are viewing this topic.

SharkDog

  • Guest
tnak fireing in air?
« 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.

headshot_snipe

  • Guest
Re:tnak fireing in air?
« Reply #1 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
« Last Edit: 04 Apr 2003, 21:32:22 by headshot_snipe »

SharkDog

  • Guest
Re:tnak fireing in air?
« Reply #2 on: 05 Apr 2003, 00:28:22 »
i tried it with alot of things but it just doesnt fire in the air.

NoFear

  • Guest
Re:tnak fireing in air?
« Reply #3 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.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:tnak fireing in air?
« Reply #4 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
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted