Jump to content
Sign in to follow this  
fawlty

InArea thisTrigger

Recommended Posts

I have two triggers activation set with opfor present.

 

Condition

this

Activation 

{_x enablesimulation false; _x setVariable ["enablesimulation",false] } forEach thisList;

 

 

This is the second trigger

Condition

this && player inArea thisTrigger

Activation

{_x enablesimulation true; _x setVariable ["enablesimulation",true] } forEach thisList;

 

 

What could I use if I wanted to include  Civilians InArea thisTrigger in the condition for both triggers

 

I know you can set this in eden, setting distance but I like having more control over this.

 

 

 

 

Share this post


Link to post
Share on other sites

Try this:
Set trigger activation to Anybody

put this in Expression:

thisList findIf { side _x == civilian || side _x == east} != -1

and change your forEach to:

forEach (thisList select {side _x == civilian || side _x == east});

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Worked great Dread,

Thanks

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  

×