Home   Help Search Login Register  

Author Topic: Trigger Drop bombs  (Read 697 times)

0 Members and 1 Guest are viewing this topic.

Actron

  • Guest
Trigger Drop bombs
« on: 01 Feb 2003, 06:15:08 »
Not sure how to approuch this, BUt I moveing in the direction of the Fire command.

Here is what I am trying to do, and at the same time eliminate a problem, with bomber aircraft under AI control .

Have a Bomber type aircraft like a B52  or F117  , fly straight at a safe altitude like 225  ,
it would be I guess in Careless mode , then when it cross's a trigger  Drop (fire) it bombs at a certain count, like the b52 dropping 40 bombs in a line (stick) .

so I set up a flying AI  b52 named AB1, with init field set AB1 flyinheight 225 , had its way point  it a straight line set a careless
then set a trigger west  500x50 , with init filed set  AB1 Fire "b52_bomb"

but nothing happens    I seem to have forgotten the use of Fire command, or not doing this correctly .

trying to avoid the AI from diveing  to drop its bombs then crashing or blowing himself up ;)

THankyou for any suggestions, I am not very strong with scripts .

example is useing the addon Za_B52_beta1  by Zack
« Last Edit: 01 Feb 2003, 06:16:40 by Actron »

Kaliyuga

  • Guest
Re:Trigger Drop bombs
« Reply #1 on: 01 Feb 2003, 07:05:51 »
 Far as I know.... AI has to have a target to fire at for any weapon...  

so you could try and make em fire at something on the ground... but for the situation you're describing my solution would be to camcreate the bombs then you'd have total control over the spacing, timing, and pattern of the bombs instead of trying to get the AI to cooperate with all your dotarget, dofire commands

I'm guessing that since the AI is piloting the plane that you will be on the ground getting shelled on in your mission ......

and If that's the case, camcreating those shells all around while a couple of those planes fly overhead might be good enough....


to do that you'd do something like this:

bomb1="b52_bomb"  camcreate getpos x

where x is the name of an object or gamelogic that you want the bomb to be created at

hope this helps you out some....  


:cheers: