Page 1 of 1
Bombers piloted by A.I.
Posted: Thu Aug 25, 2011 1:15 am
by Marth8880
Alright, so I am having really...awkward issues with auto-piloted bombers that I set up. I have flyer splines set up for the bombers to do bombing "swoops" and the bombers follow them correctly (sorta) but odd things are happening (zomg); there's a random spot near the beginning of the spline where the flyers just like to explode for no apparent reason; also, the bombers don't *usually* seem to be aiming at anything when they drop their load, they instead just drop it randomly, usually in one completely random edge of the map where literally nothing exists at ([herp]other than terrain[/derp]).
My ultimate questions are: why do the flyers keep exploding randomly in that one general area, and why do they keep barraging nothing?
Another question: how would I go about making it so the flyers don't randomly go charging into the ground?
Re: Bombers piloted by A.I.
Posted: Fri Aug 26, 2011 3:42 pm
by Bob
AI controlled flyers will always shoot when ever their weapons are ready, there's no way you could make them aim. But if your'e lucky you can give them a bit of timing by playing around with the weapons overheating and/or shoot delay stuff.
For the random explos check if theres nothing in the way and make sure they aren't to close to the ground, they would destroy themselfes with the explosions of their own bombs.
Re: Bombers piloted by A.I.
Posted: Fri Aug 26, 2011 4:14 pm
by DarthD.U.C.K.
if you wnat them to bomb a certain point, put an invisible object there , give it the healthtype "animal" and in the bombers weaponods, set "AITargetAnimal" to 1 and everything else to zero. then the ai should only aim and shoot at this object.
Re: Bombers piloted by A.I.
Posted: Fri Aug 26, 2011 8:09 pm
by Marth8880
DarthD.U.C.K. wrote:if you wnat them to bomb a certain point, put an invisible object there , give it the healthtype "animal" and in the bombers weaponods, set "AITargetAnimal" to 1 and everything else to zero. then the ai should only aim and shoot at this object.
Hmm, but wouldn't the invisible object show up on the player's HUD if they happen to point themself in the object's direction?
Re: Bombers piloted by A.I.
Posted: Fri Aug 26, 2011 8:11 pm
by AQT
Add the following parameter to the object's ODF:
Re: Bombers piloted by A.I.
Posted: Fri Aug 26, 2011 8:12 pm
by Marth8880
AQT wrote:Add the following parameter to the object's ODF:
Yay! Thanks, AQT and D.U.C.K.!