darkstaride

spawn script..

Dec 17th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.98 KB | None | 0 0
  1. /*=============================================
  2.         1.sqf zombie script
  3.         Authors: richarddanh.com
  4. =================================================*/
  5. spawning_zombie1 = {
  6.         [] spawn {
  7.         sleep 80;
  8.             _zombiegroup1 = [(getMarkerPos "ambush1"), EAST, (configFile >> "CfgGroups" >> "east" >> "RU" >> "Infantry" >> "RUS_ReconTeam")] call BIS_fnc_spawnGroup;
  9.             {_x  setVehicleInit "nul = this execFSM 'zombieLogic.fsm';"} foreach units _zombiegroup1;
  10.             processInitCommands;
  11.          };
  12. };
  13.  
  14. spawning_zombie2 = {
  15.         [] spawn {
  16.         sleep 15;
  17.             _zombiegroup2 = [(getMarkerPos "ambush2"), EAST, (configFile >> "CfgGroups" >> "east" >> "RU" >> "Infantry" >> "RU_InfSquad")] call BIS_fnc_spawnGroup;
  18.             {_x  setVehicleInit "nul = this execFSM 'zombieLogic.fsm';"} foreach units _zombiegroup2;
  19.             processInitCommands;
  20.          };
  21. };
  22.  
  23. spawning_zombie3 = {
  24.         [] spawn {
  25.         sleep 5;
  26.             _zombiegroup3 = [(getMarkerPos "ambush3"), EAST, (configFile >> "CfgGroups" >> "east" >> "RU" >> "Infantry" >> "RUS_ReconTeam")] call BIS_fnc_spawnGroup;
  27.             {_x  setVehicleInit "nul = this execFSM 'zombieLogic.fsm';"} foreach units _zombiegroup3;
  28.             processInitCommands;
  29.          };
  30. };
  31.  
  32. spawning_zombie4 = {
  33.         [] spawn {
  34.         sleep 7;
  35.             _zombiegroup4 = [(getMarkerPos "ambush4"), EAST, (configFile >> "CfgGroups" >> "east" >> "RU" >> "Infantry" >> "RUS_ReconTeam")] call BIS_fnc_spawnGroup;
  36.             {_x  setVehicleInit "nul = this execFSM 'zombieLogic.fsm';"} foreach units _zombiegroup4;
  37.             processInitCommands;
  38.          };
  39. };
  40.  
  41. spawning_zombie5 = {
  42.         [] spawn {
  43.         sleep 40;
  44.             _zombiegroup5 = [(getMarkerPos "ambush5"), EAST, (configFile >> "CfgGroups" >> "east" >> "RU" >> "Infantry" >> "RUS_ReconTeam")] call BIS_fnc_spawnGroup;
  45.             {_x  setVehicleInit "nul = this execFSM 'zombieLogic.fsm';"} foreach units _zombiegroup5;
  46.             processInitCommands;
  47.          };
  48. };
Advertisement
Add Comment
Please, Sign In to add comment