onPlayerRespawn.sqf 709 B

12345678910111213141516171819
  1. if (IA_liberation_debug) then {private _text = format ["[IA LIBERATION] [DEBUG] Respawn script started for: %1", (name player)];_text remoteExec ["diag_log",2];};
  2. if ( isNil "GRLIB_respawn_loadout" ) then {
  3. removeAllWeapons player;
  4. removeAllItems player;
  5. removeAllAssignedItems player;
  6. removeVest player;
  7. removeBackpack player;
  8. removeHeadgear player;
  9. removeGoggles player;
  10. player linkItem "ItemMap";
  11. player linkItem "ItemCompass";
  12. player linkItem "ItemWatch";
  13. } else {
  14. sleep 4;
  15. [ player, GRLIB_respawn_loadout ] call F_setLoadout;
  16. };
  17. if (IA_liberation_debug) then {private _text = format ["[IA LIBERATION] [DEBUG] Respawn script ended for: %1", (name player)];_text remoteExec ["diag_log",2];};