Jump to content

Trigger on destruction of something?


Recommended Posts

6./ZG26_Emil
Posted

I was just thinking about something that would make a cool co-op mission.

 

Is it possible to set up a trigger so say a tank only moves forward to its next waypoint after something is destroyed?

 

This could be used in a close air support type mission for IL2s escorting a column of tanks, they get stopped by some anti tank guns and need you to clear the way for them.

 

Cheers

Emil

Posted

Absolutely, see the picture.

 

post-31381-0-28917300-1427652728_thumb.jpg

 

When tanks reach the left waypoint, it increases a counter that is set to fire at 3.

Other things that trigger the counter: the "onkilled" event of two AT guns on the other side of the river.

The waypoint is also set to start a 2 minute timer that will cause the tanks to cross the river anyway.

 

And just as I look at it, I see a bug. When the 2 minute timer fires, it should disable the counter, so that a destruction of the AT guns after the tanks crossed (due to the timer running out) won't trigger the next waypoint again.

 

TheDayHellFrozeOver-SP-m4.zip

6./ZG26_Emil
Posted

Thanks mate I'll take a look at that.

 

I wish I was good at this trigger making stuff...it's still a black art to me :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...