fn_showhintemp.sqf 858 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Author: MrClock
  3. *
  4. * Arguments:
  5. * 0: Unit <OBJECT>
  6. * 1: Type <STRING>
  7. *
  8. * Example:
  9. * [Bob,"HUMAN"] call JLTS_fnc_showHintEMP;
  10. *
  11. * Return Value:
  12. * true - if completed without errors
  13. */
  14. if (!hasInterface) exitWith {};
  15. params["_unit","_type"];
  16. private _player = JLTS_playerControlled;
  17. if (_unit == _player) then {
  18. if (JLTS_settings_EMP_notifyPlayer) then {
  19. if (toUpper _type == "DROID") then {
  20. [
  21. ["JLTS_ordnance","EMP","EMP_sub_droid"],
  22. 20,
  23. nil,
  24. 30,
  25. nil,
  26. true,
  27. true,
  28. false,
  29. true
  30. ] call BIS_fnc_advHint;
  31. } else {
  32. if (toUpper _type == "HUMAN" && JLTS_settings_EMP_EMPEffectScope > 0) then {
  33. [
  34. ["RD501_ordnance","EMP","EMP_sub_fry"],
  35. 20,
  36. nil,
  37. 30,
  38. nil,
  39. true,
  40. true,
  41. false,
  42. true
  43. ] call BIS_fnc_advHint;
  44. } else {};
  45. };
  46. };
  47. };