OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Surdus Priest on 13 Nov 2007, 23:45:10

Title: triglist = thislist - [group]
Post by: Surdus Priest on 13 Nov 2007, 23:45:10
im trying to work out how to exclude an entire group from a trigger list.

group1 = group this

i've tried:

triglist = thislist - [group1]

triglist = thislist - [group group1]

triglist = thislist - [units group]

and many other things (which obviously woundnt work).

anyone know how its done?
Title: Re: triglist = thislist - [group]
Post by: Spooner on 14 Nov 2007, 01:07:38
You must ensure that you are taking an array of men away from an array of men for this to work. In your examples, you are taking away an array containing a group or an array containing an array of men.
Valid examples include:
Code: [Select]
triglist = thisList - (units group1);
Code: [Select]
triglist = thisList - (units (group player));
Code: [Select]
triglist = thisList - [player];
Title: Re: triglist = thislist - [group]
Post by: Surdus Priest on 14 Nov 2007, 01:24:08
wrong brackets then :P