Announcement

Collapse
No announcement yet.

Respawn Inventory Menu

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [GUIDE] Respawn Inventory Menu

    Here is how I set up the Respawn Inventory Menu in the following files:

    description.ext
    Code:
    class CfgRespawnInventory
    {
        class RifleBasic
        {
            vehicle = "B_Soldier_F";
        };
    
        class SquadLeader
        {
            vehicle = "B_Soldier_SL_F";
        };
    
        class Medic
        {
            vehicle = "B_Medic_F";
        };
    
        class AR
        {
            vehicle = "B_Soldier_AR_F";
        };
    
        class LAT
        {
            vehicle = "B_Soldier_LAT_F";
        };
    };
    initServer.sqf
    Code:
    [west,"RifleBasic"] 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;
    onPlayerRespawn.sqf
    Code:
    _playersWeapons = weapons player;
    _playerRole = "BasicRifle";
    _playerBackpackItems = backpackItems player;
    
    if ("Binocular" in _playersWeapons) then {_playerRole = "SquadLeader";};
    if ("launch_NLAW_F" in _playersWeapons) then {_playerRole = "LAT";};
    if ("arifle_MX_SW_pointer_F" in _playersWeapons) then {_playerRole = "AR";};
    if ("Medikit" in _playerBackpackItems) then {_playerRole = "Medic";};
    
    player sideChat format ["Role: %1",_playerRole];
    
    switch (_playerRole) do {
        case "SquadLeader":
        {
            _loadoutPlayer = [player]execVM "loadouts\squadLeaderBlufor.sqf";
            player setUnitTrait ["medic",false,false];        
        };
    
        case "Medic":
        {
            player setUnitTrait ["medic",true,false];
            _loadoutPlayer = [player]execVM "loadouts\medicBlufor.sqf";
        };
    
        case "BasicRifle":
        {
            _loadoutPlayer = [player]execVM "loadouts\rifleBasicBlufor.sqf";
            player setUnitTrait ["medic",false,false];        
        };
    
        case "LAT":
        {
            //_loadoutPlayer = [player]execVM "loadouts\rifleBasicBlufor.sqf";
            player setUnitTrait ["medic",false,false];        
        };
    
        case "AR":
        {
            //_loadoutPlayer = [player]execVM "loadouts\rifleBasicBlufor.sqf";
            player setUnitTrait ["medic",false,false];        
        };
    
    };
    Here is the video:


    Here is the mission files:
    http://steamcommunity.com/sharedfile.../?id=848219454

    |TG-189th| Unkl
    ArmA 3 Game Officer
    Dean of Tactical Gamer University
    189th Infantry Brigade Member

    SUBMIT A RIBBON NOMINATION OR CONTACT AN ARMA ADMIN

Connect

Collapse

TeamSpeak 3 Server

Collapse

Advertisement

Collapse

Twitter Feed

Collapse

Working...
X