initPlayerLocal.sqf 1.1 KB

12345678910111213141516171819202122232425
  1. (_this select 0) addEventHandler ["InventoryOpened", {
  2. namUnit=(_this select 0);
  3. _namBackPack=typeof(unitBackpack namUnit);
  4. _namIsConfigured=namUnit getVariable ["namJumpPackConfig", false];
  5. if(!_namIsConfigured && {_namBackPack isEqualTo "SWOP_B_CloneDV"}) then
  6. {
  7. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpAssinger.sqf";
  8. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpShort.sqf";
  9. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpLong.sqf";
  10. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpHandler.sqf";
  11. namUnit setVariable ["namJumpPackConfig", true, true];
  12. hint parseText format["<t color='#40e0d0'>Namenai's Horseborne JumpScript Protocal has been initiated.(HJS Protocal)</t> <img image='scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\horseborneImage.jpg' <img size='20' />"];
  13. };
  14. }];
  15. (_this select 0) addMPEventHandler ["MPRespawn", {
  16. namUnit=(_this select 0);
  17. namUnit setVariable ["namJumpPackConfig", false, true];
  18. }];