KP-Liberation/Missionframework/onPlayerRespawn.sqf

17 lines
413 B
Plaintext

if ( isNil "GRLIB_respawn_loadout" ) then {
removeAllWeapons player;
removeAllItems player;
removeAllAssignedItems player;
removeVest player;
removeBackpack player;
removeHeadgear player;
removeGoggles player;
player linkItem "ItemMap";
player linkItem "ItemCompass";
player linkItem "ItemWatch";
player linkItem "ItemRadio";
} else {
sleep 4;
[ player, GRLIB_respawn_loadout ] call F_setLoadout;
};