OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The-Architect on 14 Mar 2007, 21:55:23
-
How do I count haow many East there are left on the entire island and then fire a script off when a certain number is reached, say 30?
-
hmmm, another one to be added to the faq perhaps.
use the old trigger-covering-island routine. activated by east present, 'on activation' field -
all_east = thislist
when you want to trigger the remaining east number <=30 routine, use
?({alive _x} count all_east <= 30) : ...
-
What?
-
I personally can't help you much if you just ask 'What?' :no:
Anyway, if you want the trigger to 'trigger' once there are 30 east units left then bedges' example is a bit faulty, otherwise it makes perfect sense.
If you want the trigger to 'trigger' once the count is 30 (and thus execute a script) put the next in the condition field of the trigger
({alive _x} count thislist) <= 30Of course the trigger should be set to east -> present..
-
example attached.
-
Cheers Bedges. :sorry: