Home   Help Search Login Register  

Author Topic: triglist = thislist - [group]  (Read 1215 times)

0 Members and 1 Guest are viewing this topic.

Offline Surdus Priest

  • Members
  • *
  • Only I can Forgive You!
triglist = thislist - [group]
« 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?
Campaigns are hard, I'll stick with scripting for now!

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: triglist = thislist - [group]
« Reply #1 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];
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Surdus Priest

  • Members
  • *
  • Only I can Forgive You!
Re: triglist = thislist - [group]
« Reply #2 on: 14 Nov 2007, 01:24:08 »
wrong brackets then :P
Campaigns are hard, I'll stick with scripting for now!