Jump to content
Sign in to follow this  
keimosabe

correct syntax to set all players to setcaptive false

Recommended Posts

I know how to script a single person "unitname setcaptive false", but how would that work if I wanted a trigger to set ALL the players back to false?

I use a standard p1-p10 naming scheme and my players all start out in a prison camp with no weapons and set as captives. Once one (or several) of them approaches a weapons rack to steal weapons, I want ALL of them to set back as FALSE so OPFOR will treat them all as escaping.

I just don't know how that line of code looks. Thanks guys....

Share this post


Link to post
Share on other sites
I know how to script a single person "unitname setcaptive false", but how would that work if I wanted a trigger to set ALL the players back to false?

I use a standard p1-p10 naming scheme and my players all start out in a prison camp with no weapons and set as captives. Once one (or several) of them approaches a weapons rack to steal weapons, I want ALL of them to set back as FALSE so OPFOR will treat them all as escaping.

I just don't know how that line of code looks. Thanks guys....

{_x setcaptive false} foreach [name1,name2,name3 etc.]

Share this post


Link to post
Share on other sites

egad and THANKS BROTHER! Never in my wildest dreams would I have figured it looked like that:yay:

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  

×