matteo1944 10 Posted February 3, 2014 Can someone help me out with this script: ? !isServer: exit~random 30 _Weapons=["m9","RH_tec9","RH_muzi","mp5A5","ak74","RH_usp","RH_Deagleg","RH_mk2","RH_mk22","RH_g17"] _ammo=["15Rnd_9x19_M9","30Rnd_9x19_tec","32Rnd_9x19_Muzi","30Rnd_9x19_MP5","30rnd_545x39_AK","15Rnd_9x19_usp","7Rnd_50_AE","10Rnd_22LR_mk2","8Rnd_9x19_Mk","17Rnd_9x19_g17"] _box=_this select 0 _stagtime=boxarmtime boxarmtime=boxarmtime+10 #start ~0.5 _building= nearestbuilding _box _noofpos=0 while {format["%1",_building buildingPos _noofpos] != "[0,0,0]"} do {_noofpos = _noofpos + 1} ?(_noofpos <= 3):_box setpos [((getpos _building) select 0) + random 40 - random 40 ,((getpos _building) select 1) + random 40 - random 40];goto "start" ~0.5 _box setPos (_building buildingPos random round _noofpos - 1); ~_stagtime _box setdir random 360; _ranselect= round random 9 ~1 randomam= _ammo select _ranselect randomwep=_Weapons select _ranselect _box addmagazinecargo [randomam,random 3];box addweaponcargo [randomwep,1]; box=_box publicVariable "box" publicVariable "randomam" publicVariable "randomwep" exit This is script from Quarantine mission,and I'm using ACE mod with this mission.Since ACE have more weapons and stuff like bandages,backpacks,how can I add them to this ammo box,or any box,or maybe spawn them on the ground? Share this post Link to post Share on other sites
zulu1 145 Posted February 4, 2014 (edited) Hi Matteo You can add or replace magazine and weapon classnames with ACE names. I uploaded the spreadsheets of classnames: http://www.mediafire.com/view/asapin72n3hnms8/arma_ace_inflist.xls http://www.mediafire.com/view/pkssxi3856gb4ei/arma_ace_weaplist_config_weap.xls Edited February 4, 2014 by Zulu1 Share this post Link to post Share on other sites
matteo1944 10 Posted February 4, 2014 Thanks Zulu,but I was more thinking on adding bandages,morphine,ephinephrine,rucksacks etc: _Weapons=["m9","RH_tec9","RH_muzi","mp5A5","ak74","RH_usp"," RH_Deagleg","RH_mk2","RH_mk22","RH_g17"] but instead _weapons it will be: _AID=["bandage","morphine","........"] or _RUCKSACKS=["alice pack","raid pack","........."] I could even do that,but this part bothers me randomam= _ammo select _ranselectrandomwep=_Weapons select _ranselect _box addmagazinecargo [randomam,random 3];box addweaponcargo [randomwep,1]; box=_box publicVariable "box" publicVariable "randomam" publicVariable "randomwep" exit I don't know under what category AID or RUCKSACKS are,or how to implement them into this part of script,so please if there is anyone willing to help me out it would be great! Share this post Link to post Share on other sites
zulu1 145 Posted February 4, 2014 I don't know under what category AID or RUCKSACKS are,or how to implement them into this part of script,so please if there is anyone willing to help me out it would be great! Rucksacks are the same as weapons and bandages are like magazines. If you go the the Inf. spreadsheet you'll find the class names like: "ACE_Rucksack_AliceOld" "ACE_Rucksack_MOLLE_Green_Medic" "ACE_Bandage" "ACE_Morphine" "ACE_Bandage_PDM" "ACE_Epinephrine_PDM" Anything with _PDM is a rucksack magazine and without _PDM it's a normal slot magazine. ACE is just like the WGL rucksack system for OFP. Share this post Link to post Share on other sites
matteo1944 10 Posted February 4, 2014 Thanks Zulu,this surely helps! :D Share this post Link to post Share on other sites