OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: stephen271276 on 30 Sep 2009, 18:08:16
-
IS it possible to have a trigger over a blufor base that is set to "Opfor present" and when the enemy activate it it makes all the blufor units turn to aware mode and arm themselves whereever possible? Just a small script in init line is what im looking for?
-
Yes. It's a small script in the init field. But I suggest you, set the trigger not presend, but "detected by bluefor". It's much realistic!
I'm in the office, so I cannot test it to you, but the script could be something like this:
_blueforce = this select 0;
{_x setbehaviour "AWARE"} forEach _blueforce;
and name it "alarm.sqs" and put this into the init field of trigger, but you have to add a list as a parameter to this script of the blue soldiers....
-
A List? how would i do this as they not al got names they just ambient friendlies walking around base
-
They are not Blue side soldiers? Just civilians?
OK, it's doesn't metter, I just wondering...
Well, the list. You create an other trigger Present Blue (or civilian if they are) and in the activation field wirithe this: panickedarmy = thislist
And then, write into the first trigger (the "detected by" one) activation field:
[panickedarmy] exec "whatisthescriptname.sqs"
And of course you have to name the script above tha same (in my example whatisthescriptname.sqs).