Plik "mission.sqf"
Plik "hill.sqf"while {true} do
{
if (player distance checkflag <2 and PlayerHasAction == 0) then
{
if (side player == blufor and bluhilling == 0) then
{
act = player addaction ["Capture The Hill", "hill.sqf"]; PlayerHasAction = 1;
};
if (side player == opfor and redhilling == 0) then
{
act = player addaction ["Capture The Hill", "hill.sqf"]; PlayerHasAction = 1;
}
};
};
_activator = _this select 1;
if (side _activator == blufor) then
{
bluhilling = 1; redhilling = 0; terminate red; blue = [] execvm "bluhill.sqf"
}
else
{
bluhilling = 0; redhilling = 1; terminate blue; red = [] execvm "redhill.sqf"
};
PlayerHasAction = 0;
_activator removeaction act;