Home   Help Search Login Register  

Author Topic: array with triggernames (syntax q.)  (Read 414 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
array with triggernames (syntax q.)
« on: 16 Oct 2004, 15:33:05 »
'llo

When I make an array with triggernames, like this :

Array1 = [trigger1,trigger2,trigger3]

What's the correct syntax to check (with foreach) there's an object in one of the triggers in array1?

 


Search or search or search before you ask.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:array with triggernames (syntax q.)
« Reply #1 on: 16 Oct 2004, 19:56:30 »
This is little more than a guess ......

"isNull _x select 0" count array1 < count array1
Plenty of reviewed ArmA missions for you to play

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:array with triggernames (syntax q.)
« Reply #2 on: 17 Oct 2004, 05:02:46 »
So let me (try to) get this straight...

You've got three present triggers, and you want a line to check if any of them have units present?

I'd try this:

"count (list _x) > 0" count Array1 > 0

Try that and see if it goes... ::)

* Sui puts his knife away after having a stab in the dark

Offline DrStrangelove

  • Members
  • *
  • Mr.Creative
Re:array with triggernames (syntax q.)
« Reply #3 on: 17 Oct 2004, 13:09:30 »
* DrStrangelove collapses out of a dark corner.  :P