Jump to content
BrendoB47

Set Entire Vehicle Crew to Team

Recommended Posts

I'm running a mission from the editor where the player's squad consists of two M1A2 TUSKs making their way through Zargabad.  To make controlling the individual tanks easier, I decided to assign teams by putting

this assignTeam "RED";

and 

this assignTeam "BLUE";

into each vehicle's respective init lines.  When I played the mission, only the commanders had the proper team.  Is there a way to set an entire vehicle's crew to the team of their commander via script?  I would prefer something that can go in init lines but do work with .sqf files.

Share this post


Link to post
Share on other sites
{_x assignTeam "RED"} forEach (Crew this);

and,

{_x assignTeam "BLUE"} forEach (Crew this);

 

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

×