How Do I Create An Sqf Using This Code?
testIndex = _this select 1;
_thePlayer = _this select 2;
// foreach loop
{
if (name _x == _thePlayer) then
{
_x switchCamera "Internal";
selectPlayer _x;
player remoteControl _x;
_rcntrl = true;
};
} foreach playableUnits;
_thePlayer = _this select 2;
// foreach loop
{
if (name _x == _thePlayer) then
{
_x switchCamera "Internal";
selectPlayer _x;
player remoteControl _x;
_rcntrl = true;
};
} foreach playableUnits;


hope i helped