Jump to content
Sign in to follow this  
beno_83au

Trigger activation

Recommended Posts

I'm trying to set up two triggers. They both have the same dimensions and are activated by the player entering the trigger area. I'm trying to get it so that if a certain unit (named "cmd") is alive or dead, one or the other trigger will be activated.

So far, in the "Condition" field I've messed around with 'damage cmd > 0.9' and 'alive cmd' for the two and they work when I use a radio call as the activation. But, when I have me being present as the activation both triggers ignore my lack of presence (I start outside the trigger) and instead refer to the "Condition" field.

Not too sure how clear that sounds, it doesn't sound too clear to me lol, but short of desribing the whole mission, I would like to have one trigger activate if I'm present and 'cmd' is alive, and the other activate later if I'm present and 'cmd' is dead.

Is this possible?

Share this post


Link to post
Share on other sites

Edit - Woops, thought you were asking if I'd actually made anyone as the activation. Lol.

There is one other person within the trigger and he needs to be in it as I need the trigger to activate when you approach him, and just FYI, he says something to the player, but it differs depending on weather or not "cmd" is dead.

Share this post


Link to post
Share on other sites

Linker Split, I was thinking, is it possible to have two conditions in the condition box?

e.g. alive cmd, player present

Or something similar?

Share this post


Link to post
Share on other sites

Sure... this && alive name_of_unit

and you F2-group the unit with the trigger.

It should work.

If you're making a mission for MP, don't forget making variables public (sync with all clients) -> example:

Quote[/b] ]first=true;publicvariable "first";

Share this post


Link to post
Share on other sites
Linker Split, I was thinking, is it possible to have two conditions in the condition box?

e.g. alive cmd, player present

Or something similar?

Unit Alive and trigger condition

Quote[/b] ](alive unit1) && this

Unit Alive OR trigger condition

Quote[/b] ](alive unit1) Or this

Unit Not Alive and trigger condition

Quote[/b] ]!(alive unit1) && this

Unit Not Alive Or trigger condition

Quote[/b] ]!(alive unit1) Or this

Thats just some ways you can do this tounge2.gif

Share this post


Link to post
Share on other sites
Sure... this && alive name_of_unit

and you F2-group the unit with the trigger.

It should work.

If you're making a mission for MP, don't forget making variables public (sync with all clients) -> example:

Quote[/b] ]first=true;publicvariable "first";

Hey cheers, I was taking out "this" the whole time. Seems stupidly obvious now  confused_o.gif

So where do I drop the line:

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
Sign in to follow this  

×