Forum Jump :

Author Message

paga  



Posts: 41
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2017-02-21 17:19        
     
So i know how to make custom loadouts to be shown in the Respawn loadouts menu but if i can limit them.
I mean if a player join in a coop mission and for ex. choose machingunner or medic loadout then i want no more player to be able to choose medic or machingunner role.
Maybe if i put lines like this to the init.sqf
[missionNamespace,["WEST1",1,1]] call BIS_fnc_addRespawnInventory;
[missionNamespace,["WEST2",1,1]] call BIS_fnc_addRespawnInventory;
[missionNamespace,["WEST3",1,1]] call BIS_fnc_addRespawnInventory;
[missionNamespace,["WEST4",1,1]] call BIS_fnc_addRespawnInventory;
[missionNamespace,["WEST5",1,1]] call BIS_fnc_addRespawnInventory;


or like this

[west,"Machingunner"] call bis_fnc_addRespawnInventory;
[west,"SquadLeader"] call bis_fnc_addRespawnInventory;
[west,"Medic"] call bis_fnc_addRespawnInventory;
[west,"AR"] call bis_fnc_addRespawnInventory;
[west,"LAT"] call bis_fnc_addRespawnInventory;


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 60
In-game name: Kobayashi Maru

 
#2 Posted at 2017-02-21 18:33        
     
Yes, your first example should work in init.sqf if the roles west1, west2,... are defined in cfgroles class of the description.ext file.
See also.

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS

Advertisement


Author Message

paga  



Posts: 41
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2017-02-25 19:12        
     
Is it posssible to put stuff into the backpack in these lines in the description.ext?
class WEST6
{
displayName = "Medic";
icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\private_gs.paa"; // Icon displayed next to the name
role = "Medic";

// Loadout definition, uses same entries as CfgVehicles classes
weapons[] = {
"rhs_weap_m4_carryhandle",
"Binocular"
};
magazines[] = {
"rhs_mag_30Rnd_556x45_Mk318_Stanag",
"rhs_mag_30Rnd_556x45_Mk318_Stanag",
"rhs_mag_30Rnd_556x45_Mk318_Stanag",
"rhs_mag_30Rnd_556x45_Mk318_Stanag",
"rhs_mag_30Rnd_556x45_Mk318_Stanag",
"rhs_mag_30Rnd_556x45_Mk318_Stanag",
"rhs_mag_30Rnd_556x45_Mk318_Stanag",
"rhs_mag_an_m8hc",
"rhs_mag_m67",
"rhs_mag_m67",
"SmokeShell"
};
items[] = {
"FirstAidKit",
"Medikit",
"rhsusf_assault_eagleaiii_coy_medic"
};
linkedItems[] = {
"rhsusf_spc_corpsman",
"rhsusf_mich_helmet_marpatwd",
"rhsusf_acc_anpeq15side",
"rhsusf_acc_ACOG_USMC",
"ItemMap",
"ItemCompass",
"rhsusf_acc_grip3",
"ItemRadio",
"rhs_googles_clear"
};
uniformClass = "rhs_uniform_FROG01_wd";
backpack = "rhsusf_assault_eagleaiii_coy_medic";
};