General > Questions & Suggestions

Where to set Player Loadout?

(1/2) > >>

BlackH:
Hey i try to find the "file" where i can set the loadout witch the player starts every time ? how can i set it up ?

ShineDwarf:
Client>functions>playerSetupGear.sqf

BlackH:

--- Quote from: ShineDwarf on Apr 07, 2018, 01:21 AM ---Client>functions>playerSetupGear.sqf

--- End quote ---

Thanks do you know where the clases are ? for example when you join the server, you can slecet if you want to play as an engenier an medic or sniper, would like to add more classes but cant finde it :S

ShineDwarf:
You set those directly  in your mission.sqm by loading it into eden editor and placing the classes on spawn island. You would need to add new cases for extra items etc in the playersetupgear.sqf as well if you wanted them to be a little different.

BlackH:

--- Quote from: ShineDwarf on Apr 07, 2018, 06:02 PM ---You set those directly  in your mission.sqm by loading it into eden editor and placing the classes on spawn island. You would need to add new cases for extra items etc in the playersetupgear.sqf as well if you wanted them to be a little different.

--- End quote ---

Where i need to make clases?

I posted that in playersteupgear.sqf, but the grenadier sporn naked ? where is the problem ?



switch (true) do
{
   case (["_medic_", typeOf _player] call fn_findString != -1):
   {
      _player removeItem "arifle_TRG21_F";
      _player addWeapon "arifle_MXC_Holo_F";
      _player removeItem "FirstAidKit";
      _player addItem "Medikit";
      _player addMagazine "30Rnd_65x39_caseless_mag";
      _player addMagazine "30Rnd_65x39_caseless_mag";
      _player addMagazine "30Rnd_65x39_caseless_mag";
      
      
      
   };
   case (["_engineer_", typeOf _player] call fn_findString != -1):
   {
      _player removeItem "arifle_TRG21_F";
      _player addItem "MineDetector";
      _player addItem "Toolkit";
      _player addWeapon "arifle_MX_SW_F";
      _player removeItem "30Rnd_556x45_Stanag";
      _player removeItem "30Rnd_556x45_Stanag";
      _player removeItem "30Rnd_556x45_Stanag";
      _player removeItem "30Rnd_556x45_Stanag";
      _player addMagazine "100Rnd_65x39_caseless_mag_Tracer";
      _player addMagazine "100Rnd_65x39_caseless_mag_Tracer";
      
   };
   case (["_sniper_", typeOf _player] call fn_findString != -1):
   {
      _player removeItem "arifle_TRG21_F";
      _player addWeapon "Rangefinder";
      _player addMagazine "30Rnd_65x39_caseless_mag";
      _player addMagazine "30Rnd_65x39_caseless_mag";
      _player addWeapon "arifle_MXM_SOS_pointer_F";
      _player removeItem "30Rnd_556x45_Stanag";
      _player removeItem "30Rnd_556x45_Stanag";
      _player removeItem "30Rnd_556x45_Stanag";
      _player removeItem "30Rnd_556x45_Stanag";
   };   
      case (["_grenadier_", typeOf _player] call fn_findString != -1):
   {
      _player removeItem "arifle_TRG21_F";
      _player addWeapon "arifle_MXC_Holo_F";
      _player removeItem "FirstAidKit";
      _player addItem "Medikit";
      _player addMagazine "30Rnd_65x39_caseless_mag";
      _player addMagazine "30Rnd_65x39_caseless_mag";
      _player addMagazine "30Rnd_65x39_caseless_mag";
      
      
      
   };
   };
};

Navigation

[0] Message Index

[#] Next page

Go to full version