Page 1 of 3
Making bots shoot through walls
Posted: Mon Oct 28, 2013 3:11 am
by BotHunter
Hello all! I've been making a shield generator for Area 51. I made it so you can drive and walk through it but not shoot. that it until you pound the shield enough that it goes down. but my problem is that the bots see the shield as a solid wall that they can't shoot through. so my question is thus; is there any way to make the bots shoot just as the shield wasn't there? Thanks!
Here is a pic of the shield:

(
http://www.mediafire.com/view/0v6618m1f ... ld_Gen.bmp)
Re: Making bots shoot through walls
Posted: Mon Oct 28, 2013 6:35 am
by Apache Thunder
I think one way to solve it is to spawn a bot into the shield PCO. (set it up so the bot can't escape it). The spawn group that puts him into it would have the AIEnterOnSpawn command and the spawn group for it set to AI only.
Once you got a bot in it, (make sure the shield PCO has a AI template!), then enemy bots will fire at it since it's occupied and recognized as a enemy unit. Aside from that I don't think you can get bots to shoot through a solid object they can't see through. (unlike us humans, the alpha texturing of the shields means nothing to them. It's the collision mesh they only see and from their point of view, the shields are 100% opaque)
I think Operation Market Garden had bots spawn into a PCO version of the factory object so that bots would try to destroy it. Look at that map as the example on how to set up your shields.
Re: Making bots shoot through walls
Posted: Tue Oct 29, 2013 5:04 pm
by BotHunter
Dang

I was hoping there was an easier solution.

Re: Making bots shoot through walls
Posted: Wed Oct 30, 2013 3:19 am
by Vilespring
Put holes in it. Make it use chance.
Re: Making bots shoot through walls
Posted: Wed Oct 30, 2013 3:05 pm
by BotHunter
But then they could shoot through it every once and a while

I'm probably going to make it a PCO.
Re: Making bots shoot through walls
Posted: Wed Oct 30, 2013 7:44 pm
by Vilespring
Exactly. I have learned to make something kinda do what you want it to do, due to a limitation.
Re: Making bots shoot through walls
Posted: Mon Nov 04, 2013 11:28 pm
by Apache Thunder
Bots ignore PCOs with no AI templates. Thus they are invisible to them. My animated doors are PCOs on map I'm working on and the bots ignore them and try to drive through them (which is intended since this is what activates the door to open and let them through). I hadn't thought of that possibility in my initial reply.
I assume once the shields are PCOs I don't think you need to put any bot into it or anything. If there's someone/vehicle inside then they'll shoot at them. However if you want the bots to shoot at the shield it self, then you'd need to add an AI template and force a bot into the shield PCO so they have something they consider important enough to shoot at.
Re: Making bots shoot through walls
Posted: Tue Nov 05, 2013 12:15 am
by BotHunter
That hilarious! Right after you posted your first post, I gave the No-Ai thing a test! I was just Waiting to see if it was working.

Re: Making bots shoot through walls
Posted: Sat Nov 09, 2013 7:53 am
by Swaffy
Hmm. Will they not see the shield if it is made a StaticObject and the 3D model has no collision mesh (only a visual mesh)?
Re: Making bots shoot through walls
Posted: Sun Nov 10, 2013 5:23 pm
by BotHunter
But then the shield will be useless
