Jump to content
Sign in to follow this  
lightspeed_aust

Script loop over all OPFOR in zone

Recommended Posts

I want to execute Random House Patrol script on opfor when blufor enters zone - not sure how to do this.

this is the line of code -

guard = [this] execVM "HousePatrol.sqf"

thanx in advance

Lighty.

Share this post


Link to post
Share on other sites

no you missed the point -

i want to know how you would loop the command over all enemy units in a zone (rather then placing the command in the init line of each unit - just loop the script over all the units once).

Share this post


Link to post
Share on other sites

I didnt test it.

Trigger:

Activation: Anybody, Present, Once

Condition: WEST countside thislist > 0

OnAct: {if (side _x == EAST && _x == leader group _x) then {guard = [_x] execvm "housepatrol.sqf"}} foreach thislist

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×