How do I destroy breakables via triggers or AI attacks?

blkaddr

First time out of the vault
I have a map with fuel tanks I'd like to blow at a certain time, or better yet get the AI units to target and blow them.

I've tried setting the script state of state-change breakables and tried getting the AI to attack the tanks but no joy.

Any ideas? My last ditch will be to make invisible dudes stand near the tanks and hope friendly fire takes out the tanks when the AI goes after them, that seems very bug prone.
 
I tryed something simulair with mines... but they never took a shot at the mines... they just started shooting at me... Wish I had an answer... since I'm kinda stuck with the same problem...
 
I'll look into it but it should be fairly easy. In Quincy, a trigger started the countdown for the explosives timer near the hostages. It should just be a matter of copying how that was done.

If you want the enemy to attack the fuel tank, use a trigger to change the player index of the fuel tank to a hostile team.
 
So if I want to make the enemy target a mine, I should make the mine an enemy... Hmmm, that should work I think... never thought about that...
 
I tried setting the tanks to be an enemy team of the AI and could not get it to work. I'll try that again maybe I set it up wrong. I also tried setting a team/unit to kill the tank entity and they just ignored it. In quincy is that the hostages in the factory area?
 
sent.

3 entities one tank
the mutant is set to kill the civilian and the tank
he will kill the first not the second
the switch triggers all kinds of evil thoughts toward the tanks, who just don't care
 
Hmmm, you can use the triggers to set the tank to an enemy team number when the attacker see's the human player... then the attackers will first attack the tank because it's closest to them...

I can't find a trigger to get it working with the switch... I don't quite understand why but it wont work...

What's the situation where the tank needs to be destoyed ?
 
I just tried JJ86's suggestion of setting a detonator next to the tanks and setting it's script state like in quincy, that works.

I guess the set state of the tanks does not blow them up.

So you did get the attacker to take out the tank? Can you send me that?
 
Well if you use the triggers

Attacker can see Player

set Tank (friend) to Tank destory (team 5 & Enemy of player Attacker)

It should work...

I already deleted the mis file... sorry *DOH*
 
I tried to make an enemy attack a scenery entity that was set to a specific player index and team but that didn't work. I think it might be possible if the entity was a character and not a scenery. Just create a new entity based on the fuel tank sprite. [ROE} Snake, I think you can use this method with your mines.

I also have a breakdown of the Quincy bomb timer trigger HERE
 
Yeah. that might work... I'm gonna try it as soon as I get the map I want to use it for... I'm pretty caught up in map testing right now... So I'm gonne focus on one thing at the time now... cause I'm getting crazy :D
 
Good idea (actor breakables), I'll see if I can get that to work. I wonder if the sprite anims will sync correctly i.e. an actor has a death which might not exist in the frames for a blown tank, we'll see.
 
Cool! I just make a barracade actor that enemies will attack and destroy, right now it bleeds but I think changing it race might fix that. You need to make the death type explode if you want to be able to walk thru the exploded barracde. They do fade when you don't look at them, just like AI dudes but that's not so bad.

Thanks for the help.
 
Back
Top