From dd819127219d5406548fb9c4ef320909d46be28f Mon Sep 17 00:00:00 2001 From: Defent Date: Wed, 26 Aug 2015 21:55:41 +0200 Subject: [PATCH] Stuff asd --- crates/DMS_CreateBox.sqf | 2 +- missions/MM1.sqf | 4 ++-- missions/MM10.sqf | 6 +++--- missions/MM2.sqf | 6 +++--- missions/MM3.sqf | 6 +++--- missions/MM4.sqf | 7 ++++--- missions/MM5.sqf | 2 +- missions/MM6.sqf | 6 +++--- missions/MM7.sqf | 6 +++--- missions/MM8.sqf | 6 +++--- missions/MM9.sqf | 6 +++--- scripts/DMS_spawnAI.sqf | 3 +-- 12 files changed, 30 insertions(+), 30 deletions(-) diff --git a/crates/DMS_CreateBox.sqf b/crates/DMS_CreateBox.sqf index 786c6f2..1cc1ff2 100644 --- a/crates/DMS_CreateBox.sqf +++ b/crates/DMS_CreateBox.sqf @@ -1,5 +1,5 @@ // The content of the boxes. -private ["_type","_crate",]; +private ["_type","_crate"]; _type = _this select 0; _crate = _this select 1; diff --git a/missions/MM1.sqf b/missions/MM1.sqf index fbda837..953c31d 100644 --- a/missions/MM1.sqf +++ b/missions/MM1.sqf @@ -20,11 +20,11 @@ diag_log format ["DMS :: Main Mission 1 started at (%1)",_pos]; // Spawn Box _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; [(_pos),(5),(4)] call DMS_DMS_SpawnAI; waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0}; diff --git a/missions/MM10.sqf b/missions/MM10.sqf index f50fd83..6227037 100644 --- a/missions/MM10.sqf +++ b/missions/MM10.sqf @@ -25,12 +25,12 @@ diag_log format ["DMS :: Main Mission 10 started at (%1)",_pos]; _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; -[(_pos),(5),(4)] call DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; +[_pos,5,4] call DMS_SpawnAI; diff --git a/missions/MM2.sqf b/missions/MM2.sqf index c51c4b9..bc0ee53 100644 --- a/missions/MM2.sqf +++ b/missions/MM2.sqf @@ -24,12 +24,12 @@ diag_log format ["DMS :: Main Mission 2 started at (%1)",_pos]; _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; -[(_pos),(5),(4)] call DMS_DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; +[_pos,5,4] call DMS_SpawnAI; diff --git a/missions/MM3.sqf b/missions/MM3.sqf index ed570c1..dee6e6d 100644 --- a/missions/MM3.sqf +++ b/missions/MM3.sqf @@ -22,12 +22,12 @@ diag_log format ["DMS :: Main Mission 3 started at (%1)",_pos]; // Spawn Box _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; -[(_pos),(5),(4)] call DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; +[_pos,5,4] call DMS_SpawnAI; diff --git a/missions/MM4.sqf b/missions/MM4.sqf index 71ac6a0..da72aa5 100644 --- a/missions/MM4.sqf +++ b/missions/MM4.sqf @@ -24,12 +24,13 @@ diag_log format ["DMS :: Main Mission 4 started at (%1)",_pos]; // Spawn Box _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; + +uiuiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; -[(_pos),(5),(4)] call DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; +[_pos,5,4] call DMS_SpawnAI; diff --git a/missions/MM5.sqf b/missions/MM5.sqf index e820240..606d50a 100644 --- a/missions/MM5.sqf +++ b/missions/MM5.sqf @@ -27,7 +27,7 @@ _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select // [_crate, amount of weapons, amount of ammo] call createBox; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //[_pos, amount of ai ] call DMS_SpawnAI; diff --git a/missions/MM6.sqf b/missions/MM6.sqf index 6cb5472..baba40c 100644 --- a/missions/MM6.sqf +++ b/missions/MM6.sqf @@ -24,12 +24,12 @@ diag_log format ["DMS :: Main Mission 6 started at (%1)",_pos]; _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; -[(_pos),(5),(4)] call DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; +[_pos,5,4] call DMS_SpawnAI; diff --git a/missions/MM7.sqf b/missions/MM7.sqf index 3ba1794..f20fbc4 100644 --- a/missions/MM7.sqf +++ b/missions/MM7.sqf @@ -25,12 +25,12 @@ diag_log format ["DMS :: Main Mission 7 started at (%1)",_pos]; _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; -[(_pos),(5),(4)] call DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; +[_pos,5,4] call DMS_SpawnAI; diff --git a/missions/MM8.sqf b/missions/MM8.sqf index dfff943..dfad689 100644 --- a/missions/MM8.sqf +++ b/missions/MM8.sqf @@ -25,12 +25,12 @@ diag_log format ["DMS :: Main Mission 8 started at (%1)",_pos]; _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; -[(_pos),(5),(4)] call DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; +[_pos,5,4] call DMS_SpawnAI; diff --git a/missions/MM9.sqf b/missions/MM9.sqf index 3702cea..e95b0b4 100644 --- a/missions/MM9.sqf +++ b/missions/MM9.sqf @@ -24,12 +24,12 @@ diag_log format ["DMS :: Main Mission 9 started at (%1)",_pos]; _crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -sleep 2; +uiSleep 2; //_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; // spawn AI -//[(_pos),(5),(4)] call DMS_SpawnAI; -[(_pos),(5),(4)] call DMS_SpawnAI; +//[_pos,5,4] call DMS_SpawnAI; +[_pos,5,4] call DMS_SpawnAI; diff --git a/scripts/DMS_spawnAI.sqf b/scripts/DMS_spawnAI.sqf index 5c1dc06..33d60bb 100644 --- a/scripts/DMS_spawnAI.sqf +++ b/scripts/DMS_spawnAI.sqf @@ -1,4 +1,3 @@ -DMS_spawnAI = { private ["_group", "_pos","_soldier","_skill","_units","_playerObject"]; _pos = _this select 0; _units = _this select 1; @@ -104,4 +103,4 @@ DMS_spawnAI = { }; }; }; -}; +