I am trying to make a script where I can teleport a whole unit "BLUFOR" or "OPFOR" which are players to a specific marker through an addAction.
Here is my code, this links to an object, which is a flag pole.
_players = allPlayers;
{
if(side _x == west) then
{
player SetPos getMarkerPos "marker1";
}
} foreach _players;
Can anyone help me fix my code so that it works?