Jump to content
Sign in to follow this  
SeraphymC

Or syntax for trigger condition?

Recommended Posts

Hello,

I'm trying to make a trigger thats activated when either one of two triggers is active. When I introduce multiple conditions they all have to be true, and I need it so that if only one of them is true the trigger activates.

What is the syntax for "or"?

Share this post


Link to post
Share on other sites

http://community.bistudio.com/wiki/a_or_b

To check the other triggers you could this:

([url="http://community.bistudio.com/wiki/triggerActivated"]triggerActivated[/url] TriggerA) [b]||[/b] ([url="http://community.bistudio.com/wiki/triggerActivated"]triggerActivated[/url] TriggerB)

Edited by sxp2high

Share this post


Link to post
Share on other sites

I usually set bool variables in trigger A and B, and then check for condition "conditionA || conditionB" in trigger C. Something in the back of my head also says: be sure to set trigger C's X and Y axis to 0.

Share this post


Link to post
Share on other sites
I usually set bool variables in trigger A and B, and then check for condition "conditionA || conditionB" in trigger C. Something in the back of my head also says: be sure to set trigger C's X and Y axis to 0.

axis does not matter when condition of trigger does not include

this

edit: also i use AND and OR instead of && and ||

both works equally fine, but for me that had no scripting knowledge from before arma this was useful to get a good overview, but it doesnt matter either way.

though you get 1 less character used when using && instead of AND.

Edited by Demonized

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  

×