Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
array with triggernames (syntax q.)
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: array with triggernames (syntax q.) (Read 414 times)
0 Members and 1 Guest are viewing this topic.
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?
Logged
Search
or
search
or
search
before you ask.
macguba
Former Staff
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
Logged
Plenty of
reviewed ArmA missions
for you to play
Sui
Former Staff
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
Logged
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.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
array with triggernames (syntax q.)
Top of page