OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma3 - Editing/Scripting General => Topic started by: KDK on 09 Jul 2013, 20:46:57

Title: create new trigger type
Post by: KDK on 09 Jul 2013, 20:46:57
Is it possible to create a trigger that can be activated by either blufor or independant? I need to be able to somehow come up with a solution for this as I have a conversation in my mission that currently is activated by blufor. I need it to activate when either blufor or independant enter its radius. I tried this with no luck
Code: [Select]
{ side _x == blufor} count thislist > 0 or { side _x == independant} count thislist >0 
Title: Re: create new trigger type
Post by: SaOk on 11 Jul 2013, 11:04:57
The side need to be WEST for blufor and GUER or RESISTANCE (not sure which is the right in A3) for independant.
Code: [Select]
{side _x == WEST} count thislist > 0 || { side _x == GUER} count thislist >0
Title: Re: create new trigger type
Post by: Pirin on 11 Jul 2013, 20:44:26
The side need to be WEST for blufor

Actually ArmA3 has added blufor (http://community.bistudio.com/wiki/blufor) as a pre-defined variable for WEST with regards to side.  So:

Code: [Select]
side _x == blufor and
Code: [Select]
side _x == west are the same now.

blufor (http://community.bistudio.com/wiki/blufor), opfor (http://community.bistudio.com/wiki/opfor) and independent (http://community.bistudio.com/wiki/independent) and civilian (http://community.bistudio.com/wiki/civilian) for ArmA3.
Title: Re: create new trigger type
Post by: Wolfrug on 19 Jul 2013, 08:56:57
Also remember that for thisList to work the list needs to be populated with both blufor and independent, meaning it has to be activated by: anyone. Otherwise only blufor/independent will actually be in the list.

Wolfrug out.