OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: punisher on 09 Oct 2005, 14:03:01

Title: Plane to drop its load
Post by: punisher on 09 Oct 2005, 14:03:01
hi
my ai plane will not drop its bombs on a certain area. how can i get it to just drop even one bomb on the target area? c
It does have to be a bomb from the plane because it is an addon so no explosion scripts!
cheers
Title: Re:Plane to drop its load
Post by: 456820 on 09 Oct 2005, 14:11:43
there are some good airstrike scripts in the editors depot they wont actually make the plane drop its bombs but it appear like it has then deletes the ammo wich it fake used
have a look
Title: Re:Plane to drop its load
Post by: UNN on 09 Oct 2005, 14:20:53
You could try out [APS]Gnat's Virtual Bomber addon?

http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=18eb790f4e92cc44de98ab63cdae91a6;act=ST;f=4;t=48480 (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=18eb790f4e92cc44de98ab63cdae91a6;act=ST;f=4;t=48480)
Title: Re:Plane to drop its load
Post by: punisher on 09 Oct 2005, 17:54:07
sorry but i need the plane to actually drop it. Its a fighter from the vte pack that is to drop a napalm bomb
Title: Re:Plane to drop its load
Post by: 456820 on 09 Oct 2005, 17:55:39
how about the fire command then grab the bomb with the nearest object command then if needed you can perform some set velocity loops to get it to go down and hit where you want it to
im not sure how you would do this but it would be possible that way
Title: Re:Plane to drop its load
Post by: punisher on 09 Oct 2005, 18:34:22
i didnt understand half of that :P lol
Title: Re:Plane to drop its load
Post by: macguba on 09 Oct 2005, 19:05:48
Here's my attempt at punctuating it.     For obvious reasons I'm not sure if this is what he meant.... I haven't changed any words.

How about the fire command, then?   Grab the bomb with the nearestObject command then, if needed, you can perform some setVelocity loops to get it to go down and hit where you want it to.   I'm not sure how you would do this, but it would be possible that way.


An alternative, although the meaning is not substantially altered.   However this version involves starting not one but two sentences with 'Then', which is worse than farting in a lift.

How about the fire command?    Then grab the bomb with the nearestObject command.  Then - if needed - you can perform some setVelocity loops to get it to go down and hit where you want it to.   I'm not sure how you would do this - but it would be possible that way.
Title: Re:Plane to drop its load
Post by: 456820 on 09 Oct 2005, 19:11:06
yep thats what im trying to say the set velocity may not be needed since i havent tried the fire command on planes and LGB's
Title: Re:Plane to drop its load
Post by: punisher on 11 Oct 2005, 13:02:29
sorry im a noob and i suck, can u give me an example of how i would use that
Title: Re:Plane to drop its load
Post by: 456820 on 12 Oct 2005, 22:50:18
well name the plane in my example its called plane1

plane1 fire "name_of_weapon"

in a trigger script where ever you need it, try it and see what happes im not sure never tried with LGB's so im not sure it may follow the plane like a rocket or it may fall have a go and tell us what happens then

if it acts like a rocket some set velocitys will be in order wich ill do for you if it does fire like a rocket
Title: Re:Plane to drop its load
Post by: TLI on 13 Oct 2005, 01:20:42
    Or, you might try setting up a laser designator target on where you want the bomb to hit, and the A.I. should bomb the place on his own...

  (Question though... can you prevent a trigger created "lasertargetW" from disappearing after only a few seconds?...)