Aebian 18 Posted June 19, 2014 Hi, i try to add some wepaons to a Tank (M1A2) If i add them via the init field, all works correctly. But if i'm add them via script its not working =/ adrams_project addWeapon "GAU8"; adrams_project addMagazine "1350Rnd_30mmAP_A10"; adrams_project addMagazine "1350Rnd_30mmAP_A10";adrams_project addWeapon "FFARLauncher"; adrams_project addMagazine "38Rnd_FFAR"; adrams_project removeMagazine "1200Rnd_762x51_M240";adrams_project removeWeapon "M240_veh"; Tank is Named as adrams_project Is there a special way to use this commands in scripting? My gear script works the same way (with addMagazine ect.) but it works =/ Share this post Link to post Share on other sites
Harzach 2518 Posted June 19, 2014 How are you calling the script? Share this post Link to post Share on other sites
Joe98 92 Posted June 19, 2014 It should work. Firstly instead of using a tank use one soldier and try adding weapons and ammo from a script. Secondly: If I have say 7 soldiers on the map, I might name the soldiers red1 to red7 I then place 7 ammo boxes on the map in the top left corner in an out of the way place. I use one ammo box for each man. And in the init of the box write the code that adds ammo and weapons to each individual soldier. Then I might place another 7 ammo boxes on the map and here write another command adding equipment. Then I might place another 7 boxes on the map where I might specify the stance of each man. And so on and so forth. Keeps it all neat and tidy without a script :) . Share this post Link to post Share on other sites
Aebian 18 Posted June 19, 2014 (edited) fixed it: /* Created by Mjr. Alexander Knight Date: 06-19-2014 Updated: 06-19-2014 Content: Project M1A2 Weapon SQF */ this = _this select 0; this addWeapon "GAU8"; this addMagazine "1350Rnd_30mmAP_A10"; this addMagazine "1350Rnd_30mmAP_A10"; this addWeapon "FFARLauncher"; this addMagazine "38Rnd_FFAR"; this removeMagazine "1200Rnd_762x51_M240"; this removeWeapon "M240_veh"; Edited June 19, 2014 by Alexander Knight Share this post Link to post Share on other sites