saetheer 9 Posted March 24, 2013 (edited) Hey. I'm trying to make an impossible mission. For starters I have managed to setup 2 groups that will spawn on two different locations. you may call it unlimited wave defence I have a start.sqf script that is triggered after 60 second. start.sqf ////////////////////////////////////////////////////////////////// // Countdown before spawner ////////////////////////////////////////////////////////////////// titleText ["5 seconds", "PLAIN"]; sleep 1; titleText ["4 seconds", "PLAIN"]; sleep 1; titleText ["3 seconds", "PLAIN"]; sleep 1; titleText ["2 seconds", "PLAIN"]; sleep 1; titleText ["1 seconds", "PLAIN"]; sleep 1; execVM "spawner.sqf"; Now this works fine. my spawner.sqf looks like this _spawnPos = getmarkerPos "infspawn1"; _spawnPos1 = getmarkerPos "infspawn2"; _group1 = createGroup EAST; _unit1 = _group1 createUnit ["O_soldier_F", [_spawnPos select 0,_spawnPos select 1,1], [], 0.5, "FORM"]; _unit2 = _group1 createUnit ["O_soldier_AR_F", [_spawnPos select 0,_spawnPos select 1,1], [], 0.5, "FORM"]; sleep 0.2; _group2 = createGroup EAST; _unit1 = _group1 createUnit ["O_soldier_F", [_spawnPos1 select 0,_spawnPos1 select 1,1], [], 0.5, "FORM"]; _unit2 = _group1 createUnit ["O_soldier_AR_F", [_spawnPos1 select 0,_spawnPos1 select 1,1], [], 0.5, "FORM"]; _wp1 = _group addwaypoint[getmarkerpos "destination",0]; _wp1 = _group1 addwaypoint[getmarkerpos "destination",0]; _wp1 setwaypointtype "SAD"; titleText ["Enemies Spawned", "PLAIN"]; hint ["4 units spawned"]; sleep 300; titleText ["1 minute left before new wave", "PLAIN"]; sleep 55; execVM "start.sqf"; What I want do is for each wave, I want to add one extra unit to each group. can somone help me with the simplest way? to add new units and make this mission eventually impossible? Edited March 24, 2013 by Saetheer Share this post Link to post Share on other sites
Sandy* 10 Posted March 24, 2013 If you're trying to spawn a unit from a side that has no units placed in the editor, this might be the classic editor/scripting problem where the side is missing a so called "center". Try placing some east unit on the map and then try running the script. Share this post Link to post Share on other sites
saetheer 9 Posted March 24, 2013 If you're trying to spawn a unit from a side that has no units placed in the editor, this might be the classic editor/scripting problem where the side is missing a so called "center". Try placing some east unit on the map and then try running the script. I'm sorry. I have edited the post. I figured out how to spawn a single unit. Share this post Link to post Share on other sites