Jump to content
pognivet

Activate trigger only if another trigger hasn't been activated

Recommended Posts

this is probably pretty simple for someone more experienced but for someone like me it makes my head hurt.

 

im looking for something that is essentially "!triggeractivated".

 

i have a mission where players have to destroy a nuclear launchpad before it launches the nuke.

 

the nuke has full effects and actually explodes some time after it launches.

 

i have the nuke launchpad named "nuke1" and a win-the-game trigger where the activation is "!alive nuke1". therefore when players destroy the nuke they win.

 

the only problem is if the nuclear missile has already launched and players destroy the now-empty launchpad they still win, even though their base just got nuked and totally annihilated and everyone killed.

 

i have another trigger on a timer for the firing of the nuke called "launchtrig2".

 

i want the win-the-game trigger to take this into account and be like "!alive nuke1 && !triggeractivated launchtrig2" so that if the nuke fires and is destroyed afterwards it awards nothing.

 

any help would be appreciated.

Share this post


Link to post
Share on other sites

You answered your own question.  Use !triggerActivated or just delete the win trigger when the missile launches.

  • Like 3

Share this post


Link to post
Share on other sites

https://community.bistudio.com/wiki/triggerActivated

All you need to do then is name the trigger.

That's not his problem. His problem is that the game ,or better the trigger, don't recognize when the missiles has left the launchpad. The trigger "trigs" when player  destroy it, regardless if the missile is already been fired or not. The way I will handle it is: 

place another trigger where as condition

triggerActivated launchtrig2

then on on act:

deleteVehicle "the name of the WIN trigger"

That way once the nuke is fired, you cannot get the WIN trigger to fire...

 

note: I'm sure there's many other way..just this is how I would handle it with my little experience. 

Share this post


Link to post
Share on other sites

That's not his problem.

That's exactly his problem from how he described it and kylania gave 100% correct answer to him.

  • Like 1

Share this post


Link to post
Share on other sites
On 6/23/2016 at 2:47 PM, kylania said:

You answered your own question.  Use !triggerActivated or just delete the win trigger when the missile launches.

lol thanks. i didn't know that !triggeractivated existed.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×