mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
hunting for buggy scripts
This commit is contained in:
parent
1ad78d7446
commit
04d45b552d
@ -2,15 +2,16 @@
|
||||
_lzCount = 86;
|
||||
|
||||
// Compile helpers
|
||||
createDropoffLZ = compile preProcessfile "createDropoffLZ.sqf";
|
||||
createPickupLZ = compile preProcessfile "createPickupLZ.sqf";
|
||||
//createDropoffLZ = compile preProcessfile "createDropoffLZ.sqf";
|
||||
//createPickupLZ = compile preProcessfile "createPickupLZ.sqf";
|
||||
|
||||
createSquad = compile preProcessfile "createSquad.sqf";
|
||||
createEnemySquads = compile preProcessfile "createEnemySquads.sqf";
|
||||
//createSquad = compile preProcessfile "createSquad.sqf";
|
||||
//createEnemySquads = compile preProcessfile "createEnemySquads.sqf";
|
||||
|
||||
deleteSquads = compile preProcessfile "deleteSquads.sqf";
|
||||
playerVehicleInList = compile preProcessfile "playerVehicleInList.sqf";
|
||||
playerVehicleInListBool = compile preProcessfile "playerVehicleInListBool.sqf";
|
||||
//playerVehicleInList = compile preProcessfile "playerVehicleInList.sqf";
|
||||
//playerVehicleInListBool = compile preProcessfile "playerVehicleInListBool.sqf";
|
||||
//getSideTasks = compile preProcessfile "getSideTasks.sqf";
|
||||
|
||||
|
||||
execVM "briefing.sqf";
|
||||
@ -66,5 +67,5 @@ publicVariable "missionInitComplete";
|
||||
|
||||
if (isServer) then
|
||||
{
|
||||
execVM "taskSpawner.sqf";
|
||||
}
|
||||
// execVM "taskSpawner.sqf";
|
||||
};
|
||||
|
@ -1,10 +1,10 @@
|
||||
diag_log format["taskSpawner called, _this: %1", _this];
|
||||
diag_log "taskSpawner called";
|
||||
scopeName "main";
|
||||
while {true} do
|
||||
{
|
||||
scopeName "mainloop";
|
||||
private _justPlayers = BIS_fnc_listPlayers - entities "HeadlessClient_F";
|
||||
private _result = [(west BIS_fnc_tasksUnit), {[_this] call BIS_fnc_taskCompleted}] call CBA_fnc_reject;
|
||||
_result = [_side_tasks, {_this call BIS_fnc_taskCompleted}] call CBA_fnc_reject;
|
||||
diag_log format["taskSpawner: active tasks: %1 players: ", (count _result), (count _justPlayers)];
|
||||
while (count _result != count _justPlayers) do
|
||||
{
|
||||
@ -20,7 +20,7 @@ while {true} do
|
||||
breakTo "spawnloop";
|
||||
}
|
||||
} forEach _justPlayers;
|
||||
[_newLZLocation, false] execVM "createPickupLZ.sqf";
|
||||
[_newLZLocation, false] spawn createPickupLZ;
|
||||
}
|
||||
sleep 10;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user