7ali7 8 Posted July 5, 2019 Just now, GEORGE FLOROS GR said: Hello there 7ali7 ! So you need to change only your group units or all the certain side , ex. all the east side ? thanks for trying to solve this problem. yes, only change my squad. 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 5, 2019 Do you want to add like the same loadout to everyone or like 3 different loadouts ( sniper , autorifleman , at soldier ) ? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 6, 2019 Do you want also the loadout change for player ? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 6, 2019 here is a code to check : Spoiler ALI_Extra_Loadouts = { _random = selectrandom [1,2,3]; switch(_random)do{ case 1 :{ //________________ Loadout 1 ________________ comment "Exported from Arsenal by [GR]GEORGE F"; comment "[!] UNIT MUST BE LOCAL [!]"; if (!local _this) exitWith {}; comment "Remove existing items"; removeAllWeapons _this; removeAllItems _this; removeAllAssignedItems _this; removeUniform _this; removeVest _this; removeBackpack _this; removeHeadgear _this; removeGoggles _this; comment "Add containers"; _this forceAddUniform "U_B_FullGhillie_lsh"; _this addItemToUniform "FirstAidKit"; _this addItemToUniform "Chemlight_green"; for "_i" from 1 to 2 do {_this addItemToUniform "7Rnd_408_Mag";}; _this addVest "V_Chestrig_rgr"; _this addItemToVest "7Rnd_408_Mag"; _this addBackpack "B_AssaultPack_blk"; _this addHeadgear "H_CrewHelmetHeli_B"; _this addGoggles "G_Tactical_Clear"; comment "Add weapons"; _this addWeapon "srifle_LRR_camo_F"; _this addPrimaryWeaponItem "optic_LRPS"; comment "Add items"; _this linkItem "ItemMap"; _this linkItem "ItemCompass"; _this linkItem "ItemWatch"; _this linkItem "ItemRadio"; comment "Set identity"; [_this,"WhiteHead_15","male12eng"] call BIS_fnc_setIdentity; }; case 2 :{ //________________ Loadout 2 ________________ comment "Exported from Arsenal by [GR]GEORGE F"; comment "[!] UNIT MUST BE LOCAL [!]"; if (!local _this) exitWith {}; comment "Remove existing items"; removeAllWeapons _this; removeAllItems _this; removeAllAssignedItems _this; removeUniform _this; removeVest _this; removeBackpack _this; removeHeadgear _this; removeGoggles _this; comment "Add containers"; _this forceAddUniform "U_B_CTRG_1"; _this addItemToUniform "FirstAidKit"; _this addItemToUniform "Chemlight_green"; _this addVest "V_Chestrig_rgr"; _this addItemToVest "200Rnd_65x39_cased_Box"; _this addBackpack "B_AssaultPack_blk"; for "_i" from 1 to 2 do {_this addItemToBackpack "200Rnd_65x39_cased_Box";}; _this addHeadgear "H_CrewHelmetHeli_B"; _this addGoggles "G_Tactical_Clear"; comment "Add weapons"; _this addWeapon "LMG_Mk200_F"; _this addPrimaryWeaponItem "muzzle_snds_H"; _this addPrimaryWeaponItem "optic_DMS"; _this addPrimaryWeaponItem "bipod_02_F_blk"; comment "Add items"; _this linkItem "ItemMap"; _this linkItem "ItemCompass"; _this linkItem "ItemWatch"; _this linkItem "ItemRadio"; comment "Set identity"; [_this,"WhiteHead_15","male12eng"] call BIS_fnc_setIdentity; }; case 3 :{ //________________ Loadout 3 ________________ comment "Exported from Arsenal by [GR]GEORGE F"; comment "[!] UNIT MUST BE LOCAL [!]"; if (!local _this) exitWith {}; comment "Remove existing items"; removeAllWeapons _this; removeAllItems _this; removeAllAssignedItems _this; removeUniform _this; removeVest _this; removeBackpack _this; removeHeadgear _this; removeGoggles _this; comment "Add containers"; _this forceAddUniform "U_B_CTRG_1"; _this addItemToUniform "FirstAidKit"; _this addItemToUniform "Chemlight_green"; for "_i" from 1 to 2 do {_this addItemToUniform "30Rnd_65x39_caseless_green";}; _this addVest "V_Chestrig_rgr"; _this addItemToVest "30Rnd_65x39_caseless_green"; _this addBackpack "B_AssaultPack_blk"; for "_i" from 1 to 2 do {_this addItemToBackpack "RPG32_F";}; _this addHeadgear "H_CrewHelmetHeli_B"; _this addGoggles "G_Tactical_Clear"; comment "Add weapons"; _this addWeapon "arifle_Katiba_C_F"; _this addPrimaryWeaponItem "muzzle_snds_H"; _this addPrimaryWeaponItem "optic_MRCO"; _this addWeapon "launch_RPG32_F"; comment "Add items"; _this linkItem "ItemMap"; _this linkItem "ItemCompass"; _this linkItem "ItemWatch"; _this linkItem "ItemRadio"; comment "Set identity"; [_this,"WhiteHead_15","male12eng"] call BIS_fnc_setIdentity; }; }; }; ALI_Extra = { { if!(isplayer _x)then{ _x call ALI_Extra_Loadouts; _x addEventHandler["Fired", { params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"]; if({_x isEqualTo _magazine}count magazines _unit < 2)then{ _unit addMagazines [_magazine, 3]; // systemchat "addMagazines"; }; }]; }; }foreach units group player; }; []spawn ALI_Extra; Check if it's suits you and i'll mod this. 1 Share this post Link to post Share on other sites
7ali7 8 Posted July 6, 2019 do you have a mod name personal arsenal by any chance? in that mod you can change your weapons,pistol,vest,backpack.etc and customize your weapons as well.i like do these to my squad. give them different loadout and could change in any mission. 1 Share this post Link to post Share on other sites
7ali7 8 Posted July 6, 2019 3 minutes ago, GEORGE FLOROS GR said: here is a code to check : Reveal hidden contents ALI_Extra_Loadouts = { _random = selectrandom [1,2,3]; switch(_random)do{ case 1 :{ //________________ Loadout 1 ________________ comment "Exported from Arsenal by [GR]GEORGE F"; comment "[!] UNIT MUST BE LOCAL [!]"; if (!local _this) exitWith {}; comment "Remove existing items"; removeAllWeapons _this; removeAllItems _this; removeAllAssignedItems _this; removeUniform _this; removeVest _this; removeBackpack _this; removeHeadgear _this; removeGoggles _this; comment "Add containers"; _this forceAddUniform "U_B_FullGhillie_lsh"; _this addItemToUniform "FirstAidKit"; _this addItemToUniform "Chemlight_green"; for "_i" from 1 to 2 do {_this addItemToUniform "7Rnd_408_Mag";}; _this addVest "V_Chestrig_rgr"; _this addItemToVest "7Rnd_408_Mag"; _this addBackpack "B_AssaultPack_blk"; _this addHeadgear "H_CrewHelmetHeli_B"; _this addGoggles "G_Tactical_Clear"; comment "Add weapons"; _this addWeapon "srifle_LRR_camo_F"; _this addPrimaryWeaponItem "optic_LRPS"; comment "Add items"; _this linkItem "ItemMap"; _this linkItem "ItemCompass"; _this linkItem "ItemWatch"; _this linkItem "ItemRadio"; comment "Set identity"; [_this,"WhiteHead_15","male12eng"] call BIS_fnc_setIdentity; }; case 2 :{ //________________ Loadout 2 ________________ comment "Exported from Arsenal by [GR]GEORGE F"; comment "[!] UNIT MUST BE LOCAL [!]"; if (!local _this) exitWith {}; comment "Remove existing items"; removeAllWeapons _this; removeAllItems _this; removeAllAssignedItems _this; removeUniform _this; removeVest _this; removeBackpack _this; removeHeadgear _this; removeGoggles _this; comment "Add containers"; _this forceAddUniform "U_B_CTRG_1"; _this addItemToUniform "FirstAidKit"; _this addItemToUniform "Chemlight_green"; _this addVest "V_Chestrig_rgr"; _this addItemToVest "200Rnd_65x39_cased_Box"; _this addBackpack "B_AssaultPack_blk"; for "_i" from 1 to 2 do {_this addItemToBackpack "200Rnd_65x39_cased_Box";}; _this addHeadgear "H_CrewHelmetHeli_B"; _this addGoggles "G_Tactical_Clear"; comment "Add weapons"; _this addWeapon "LMG_Mk200_F"; _this addPrimaryWeaponItem "muzzle_snds_H"; _this addPrimaryWeaponItem "optic_DMS"; _this addPrimaryWeaponItem "bipod_02_F_blk"; comment "Add items"; _this linkItem "ItemMap"; _this linkItem "ItemCompass"; _this linkItem "ItemWatch"; _this linkItem "ItemRadio"; comment "Set identity"; [_this,"WhiteHead_15","male12eng"] call BIS_fnc_setIdentity; }; case 3 :{ //________________ Loadout 3 ________________ comment "Exported from Arsenal by [GR]GEORGE F"; comment "[!] UNIT MUST BE LOCAL [!]"; if (!local _this) exitWith {}; comment "Remove existing items"; removeAllWeapons _this; removeAllItems _this; removeAllAssignedItems _this; removeUniform _this; removeVest _this; removeBackpack _this; removeHeadgear _this; removeGoggles _this; comment "Add containers"; _this forceAddUniform "U_B_CTRG_1"; _this addItemToUniform "FirstAidKit"; _this addItemToUniform "Chemlight_green"; for "_i" from 1 to 2 do {_this addItemToUniform "30Rnd_65x39_caseless_green";}; _this addVest "V_Chestrig_rgr"; _this addItemToVest "30Rnd_65x39_caseless_green"; _this addBackpack "B_AssaultPack_blk"; for "_i" from 1 to 2 do {_this addItemToBackpack "RPG32_F";}; _this addHeadgear "H_CrewHelmetHeli_B"; _this addGoggles "G_Tactical_Clear"; comment "Add weapons"; _this addWeapon "arifle_Katiba_C_F"; _this addPrimaryWeaponItem "muzzle_snds_H"; _this addPrimaryWeaponItem "optic_MRCO"; _this addWeapon "launch_RPG32_F"; comment "Add items"; _this linkItem "ItemMap"; _this linkItem "ItemCompass"; _this linkItem "ItemWatch"; _this linkItem "ItemRadio"; comment "Set identity"; [_this,"WhiteHead_15","male12eng"] call BIS_fnc_setIdentity; }; }; }; ALI_Extra = { { if!(isplayer _x)then{ _x call ALI_Extra_Loadouts; _x addEventHandler["Fired", { params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"]; if({_x isEqualTo _magazine}count magazines _unit < 2)then{ _unit addMagazines [_magazine, 3]; // systemchat "addMagazines"; }; }]; }; }foreach units group player; }; []spawn ALI_Extra; Check if it's suits you and i'll mod this. ummm..... how to use this 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 6, 2019 I know the mod but i don't think that there is such mod available, you can do this though with @Mcc mod , then you will have acced to ZEUS and you will be able to give any extras that you want in your mission , because it's actually a real time editor. You should check the @ARES mod as well. 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 6, 2019 1 minute ago, 7ali7 said: ummm..... how to use this if you want to test the script above then you need to create a mission in the editor and exec this script. If you don't know anything about doing this then you should really check about the mods above. 1 Share this post Link to post Share on other sites
7ali7 8 Posted July 6, 2019 1 minute ago, GEORGE FLOROS GR said: I know the mod but i don't think that there is such mod available, you can do this though with @Mcc mod , then you will have acced to ZEUS and you will be able to give any extras that you want in your mission , because it's actually a real time editor. You should check the @ARES mod as well. zeus! in campaign? if i use the script should i change script every time i want to change loadout for example weapons then go to game and play the mission? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 6, 2019 Yes if you are using this script and you want to make changes you need to edit this. This is why it should be maybe better to work with the above mods. You should so else check about the Mcc , because it's really number one ! I' m using this for tests purposes and game. 1 Share this post Link to post Share on other sites
7ali7 8 Posted July 6, 2019 4 minutes ago, GEORGE FLOROS GR said: if you want to test the script above then you need to create a mission in the editor and exec this script. If you don't know anything about doing this then you should really check about the mods above. ok. i will. but you said it's easy to editing. i'll do my best to test the code and tell you what happened. 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 6, 2019 Here is an example mission of the script above : #SCRIPT_TEST.Stratis.zip Expires in: 29 days 20:59:09 | Size: 6.8 KB | 1 Share this post Link to post Share on other sites