fn_onRespawn.sqf 357 B

1234567891011
  1. #include "macro.sqf"
  2. /*
  3. @version: 1.0
  4. @file_name: load_onrespawn.sqf
  5. @file_author: TAW_Tonic
  6. @file_edit: 5/23/2013
  7. */
  8. VAS_slot = lbCurSel VAS_load_list;
  9. if(VAS_slot == -1) exitWith {hint "No slot was selected to be loaded upon respawn!"};
  10. player RemoveallEventHandlers "Respawn";
  11. player addEventHandler ["Respawn", {[VAS_slot] spawn VAS_fnc_loadGear;}];