ilovebeer 0 Posted September 9, 2007 Im currently in the final stages of my mission. I am using arma edit to make destription file. In the mission i have 4 men each one labeled (man1,man2...etc). I want each of them to have specific load out. now in the editor it works each one has the right weapons, but when i send it to SP missions it doesnt work? when i send it to MP missions it works? i dont know what could be causing this. Here is what my man1 loadout looks like. ; Get the unit parameter given _unit = _this select 0 ; Strip the units current gear removeAllWeapons _unit ; Add the new gear to the unit _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addWeapon "AKS74UN" _unit selectWeapon "AKS74UN" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addWeapon "MakarovSD" _unit addMagazine "PipeBomb" _unit addMagazine "PipeBomb" _unit addMagazine "PipeBomb" _unit addWeapon "Binocular" _unit addWeapon "NVGoggles" Exit Share this post Link to post Share on other sites
W0lle 1052 Posted September 9, 2007 The script so far is ok, how do you call it in the mission? If you haven't already, do the following: 1. Save the script as "loadout.sqs" 2. In the units initialization line type: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[this] exec "loadout.sqs" 3. Save and test again Share this post Link to post Share on other sites
ilovebeer 0 Posted September 9, 2007 Like ill name 1 unit "man1" and i ill make a script for him like this ; Get the unit parameter given _unit = _this select 0 ; Strip the units current gear removeAllWeapons _unit ; Add the new gear to the unit _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addWeapon "AKS74UN" _unit selectWeapon "AKS74UN" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addWeapon "MakarovSD" _unit addMagazine "PipeBomb" _unit addMagazine "PipeBomb" _unit addMagazine "PipeBomb" _unit addWeapon "Binocular" _unit addWeapon "NVGoggles" Exit and for man2 ill have same thing but different script name like this. But ill have it labeled just for man2. Should i do 1 script for all units? i want 3 of the 4 men with same load out and 1 with different one. ; Get the unit parameter given _unit = _this select 0 ; Strip the units current gear removeAllWeapons _unit ; Add the new gear to the unit _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addMagazine "30Rnd_545x39_AKSD" _unit addWeapon "AKS74UN" _unit selectWeapon "AKS74UN" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addMagazine "8Rnd_9x18_MakarovSD" _unit addWeapon "MakarovSD" _unit addMagazine "PipeBomb" _unit addMagazine "PipeBomb" _unit addMagazine "PipeBomb" _unit addWeapon "Binocular" _unit addWeapon "NVGoggles" Exit and in Initialization box ill put [this] exec "man2.sqs" Share this post Link to post Share on other sites
ilovebeer 0 Posted September 10, 2007 ok i tried just making the loadout script and it still does it. So  i made a new mission put all the files in it except mission.sqm and saved it to SP mission and it worked. So that means my scripts are right somthing i did in the mission willl not alot to work. I cant figure out what it could be, so looks like im going to have to remake a new one. Any ideas? Share this post Link to post Share on other sites