walshy690 10 Posted September 28, 2013 Hows it going guys? I'm very new to mission editing etc so please bear with me. I am currently editing a Wasteland mission file and have pretty much finished editing items in the weapons shop so I am now moving onto the vehicle spawns. Basically I want to add more vehicles at certain parts of the map like in towns and randomly placed vehicles as well, now I think its the Mission.SQF that I need to edit but I cannot figure out how I add them for example: class Item205 { position[]={7158.13,0.00295138,5977.1}; name="boatSpawn_1"; type="Empty"; colorName="ColorBlue"; }; It says boat spawn but I dont know where to edit/add more boats and land vehicles. Any help is much appreciated. Walshy Share this post Link to post Share on other sites
na_palm 19 Posted September 28, 2013 hi walshy690, create a new mission in ArmA->Editor, save it, copy your wasteland mission.sqm in it and load it again. Now you can easily add new mapmarkers to it. Then save it and copy the mission.sqm back into the wasteland folder to test it. greetings Na_Palm Share this post Link to post Share on other sites
walshy690 10 Posted September 28, 2013 Awesome I have done that and I see alot of markers on the map saying spawn 1, boatspawn etc. Now I can add random vehicles etc but how do I configure them like they are currently? also If I just place vehicles will they be part of the vehicle respawn/cleanup script? Sorry I am very new to this Share this post Link to post Share on other sites
na_palm 19 Posted September 28, 2013 ahh yeah, sorry forgot to mention that part. As there are lots of div. Wasteland missions out there, i have to guess. If your Wasteland mission has a 'server/functions' subfolder look in vehiclespawning.sqf, boatspawning.sqf in this subfolder. look for a line as: for "_i1" from 1 to 15 step 1 do and change the 15 in this example to your new boatmarker count PS. it is essential to name your new markers in the same way the preplaced are named. eg. "boatSpawn_18","boatSpawn_19","boatSpawn_20" .... Share this post Link to post Share on other sites
walshy690 10 Posted September 28, 2013 Ok that makes sense so however many spawns I add I have to edit it to the total number that I have on the map. Now how do I choose what Vehicles I want spawned and can I limit it so there is no heavy armour etc which would ruin the balance of the game Share this post Link to post Share on other sites
na_palm 19 Posted September 28, 2013 under 'server/functions' subfolder look into serverVars.sqf waterVehicles = [ // "B_Lifeboat", // "O_Lifeboat", // "C_Rubberboat", "B_SDV_01_F", "O_SDV_01_F", "I_SDV_01_F", "B_Boat_Transport_01_F", "O_Boat_Transport_01_F", "I_Boat_Transport_01_F", "I_G_Boat_Transport_01_F", "B_Boat_Armed_01_minigun_F", "O_Boat_Armed_01_hmg_F", "I_Boat_Armed_01_minigun_F", "C_Boat_Civil_01_F", "C_Boat_Civil_01_police_F", "C_Boat_Civil_01_rescue_F" ]; between the both brackets [ ] put the classnames of your spawnable boats. Look for the following komma "," every line needs it only the last NOT. PS. 2 slashes "//" mean this line is out commented and will not be considered. Share this post Link to post Share on other sites
walshy690 10 Posted September 28, 2013 Ok I have added a load of spawn points on the map and saved it. I then updated the server file for vehicle spawns and changed it from 134 to 220 (which was the new spawns I put in) I have now hosted the mission on my computer to test it and the new vehicle spawns I put in have not spawned the vehicles, is there anything else I should change? ---------- Post added at 14:12 ---------- Previous post was at 14:09 ---------- Also I really appreciate the help you are giving me mate Share this post Link to post Share on other sites
na_palm 19 Posted September 28, 2013 no that should have been all to edit... If you don't mind, upload it and post a link so i can look into it.... Share this post Link to post Share on other sites
walshy690 10 Posted September 28, 2013 ok let me upload it to dropbox and I will post the link ---------- Post added at 14:34 ---------- Previous post was at 14:21 ---------- Here you go mate I had to zip the PBO file but when you extract it everything should be in there. https://dl.dropboxusercontent.com/u/171972319/WalshyWasteland%2520Test.Stratis.rar ---------- Post added at 14:39 ---------- Previous post was at 14:34 ---------- Thanks again Share this post Link to post Share on other sites
na_palm 19 Posted September 28, 2013 ok, i looked into it. It's all fine from your part. :) in vehiclecreation.sqf and boatcreation.sqf look at line 13 again: boatcreation.sqf for "_i1" from 1 to 40 step 2 do vehiclecreation.sqf for "_i1" from 0 to 220 step 2 do with the "step 2" part of the FOR loop, the script tells ArmA to only use every other spawnpoint 0,2,4,6,8...... if you want an vehicle on every spot delete the "step 2" from it boatcreation.sqf for "_i1" from 1 to 40 do vehiclecreation.sqf for "_i1" from 0 to 220 do or change the "2" to whatever interval to use. So, cuddos to me for not telling you firsthand. Share this post Link to post Share on other sites
walshy690 10 Posted September 28, 2013 Ahhhh that makes sense so effectivly if I want 200 vehicles I could get rid of the number like above or have 400 spawns and keep it as 2. I will try this when im at home in the next hour. thanks again for your help Share this post Link to post Share on other sites
na_palm 19 Posted September 28, 2013 yeah exactly. You could also write "step 1" to use every spawnpoint. But that is the standard procedure so you dont need to write it... for a handy list of all scripting command, with explanations, take a look here. https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3 greetings Na_Palm Share this post Link to post Share on other sites
walshy690 10 Posted September 28, 2013 Just realised I think my objects and vehicles have the same spawn points to that if a vehicle doesnt spawn then a moveable object does so I will need to up the amount of spawn points I think. Thank you very much for your help and no doubt you will see more threads by me lol Walshy Share this post Link to post Share on other sites