Jump to content
Sign in to follow this  
Solarghost

How do I give a soldier a custom loadout?

Recommended Posts

How do I give a soldier a custom loadout? and also add extra ammo in his Rucksack?

This would be much appreciated.

Thanks guys!

lol I'm just in the middle of making a mission for Quesh Kibrul

Gonna give custom loadouts, gonna be IEDs, roof top ambushes, technical patrols, the works!

:yay: :yay:

Share this post


Link to post
Share on other sites
ACE or not?

Yes Ace, that's why I said Rucksacks too :p

Cheers if you could help :)

Share this post


Link to post
Share on other sites

http://ace.wikkii.com/wiki/Main_Page

Removeallweapons this ; this addweapon "NVGoggles" ; This addweapon "ACE_SOC_M4A1_SHORTDOT" ; this addmagazine "30rnd_556X45_Stanag" ; this addmagazine "ACE_30Rnd_556x45_T_Stanag" ; this addmagazine "ACE_30Rnd_556x45_T_Stanag" ; this addmagazine "30rnd_556X45_Stanag" ; this addmagazine "30rnd_556X45_Stanag" ; this setVariable ["ACE_weapononback", "m136"]; this addmagazine "M136" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ;

Its just some sample code for custom loadouts. The addweapon parameter you will change to what ever weap you want, magazine to whatever magizine you want.

Share this post


Link to post
Share on other sites

Thanks bro, so that is obviously for their vest, but how do I add items to their ruck sack?

Also... would this work?

Removeallweapons this ; this addweapon "NVGoggles" ; This addweapon "ACE_SOC_M4A1_SHORTDOT" ; this addmagazine "ACE_30Rnd_556x45_T_Stanag",50 ; this setVariable ["ACE_weapononback", "m136"]; this addmagazine "M136" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ;

Would that add 50 clips?

or do you have to do it all seperate?

Edited by Solarghost

Share this post


Link to post
Share on other sites
http://ace.wikkii.com/wiki/Main_Page

Removeallweapons this ; this addweapon "NVGoggles" ; This addweapon "ACE_SOC_M4A1_SHORTDOT" ; this addmagazine "30rnd_556X45_Stanag" ; this addmagazine "ACE_30Rnd_556x45_T_Stanag" ; this addmagazine "ACE_30Rnd_556x45_T_Stanag" ; this addmagazine "30rnd_556X45_Stanag" ; this addmagazine "30rnd_556X45_Stanag" ; this setVariable ["ACE_weapononback", "m136"]; this addmagazine "M136" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ; this addmagazine "ACE_SSWhite_FG" ;

Its just some sample code for custom loadouts. The addweapon parameter you will change to what ever weap you want, magazine to whatever magizine you want.

Got any sample code where I can give my guy a rucksack and add stuff in it?

Share this post


Link to post
Share on other sites

To add 5 mags I would use:

{this addMagazine "MAGNAME"} forEach [1,2,3,4,5];

For the adding mags to ACE ruck here is an example from the wiki:

ok = [player, "ACE_33Rnd_9x19_G18", 4] call ace_sys_ruck_fnc_API_PackMagazine;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×