Advertisement
icdb

[ArmA3] Dataterminal nuke hold action remoteexec

Dec 2nd, 2017
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _target = (_this select 1);
  2. _title = "activate Nuke";
  3. _idleIcon = "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa";
  4. _progressIcon = "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa";
  5. _condShow = "_this distance _target < 3";
  6. _condProgress = "_caller distance _target < 3";
  7. _codeStart = {[_target, 3] call BIS_fnc_DataTerminalAnimate;};
  8. _codeProgress = {};
  9. _codeCompleted = {
  10.     sleep 1.5;
  11.     _target say3D "Alarm";
  12.     sleep 1.5;
  13.     _target say3D "Alarm";
  14.     sleep 1.5;
  15.     [_target, 0] call BIS_fnc_DataTerminalAnimate;
  16.     sleep 2;
  17.     cursorObject setObjectTextureGlobal [2, "#(argb,8,8,3)color(0,0,0,1,co)"];
  18.  
  19.     {    
  20.         [(getPos _target) ,500,500] remoteExec [_x,0];
  21.     }   foreach [
  22.                 "rhs_fnc_ss21_nuke_fx_smoke",
  23.              "rhs_fnc_ss21_nuke_fx_light",
  24.              "rhs_fnc_ss21_nuke_fx_shockwave",
  25.                 "rhs_fnc_ss21_nuke_fx_postprocessing"
  26.     ];
  27.  
  28.     [(getPos _target),500,500] remoteExecCall ["rhs_fnc_ss21_nuke_fx_damage",2];
  29.  
  30. };
  31. _codeInterupted = {[_target, 0] call BIS_fnc_DataTerminalAnimate; };
  32. _arguments = [];
  33. _duration = 3;
  34. _priority = 10;
  35. _removeCompleted = true;
  36. _showUncon = false;
  37.  
  38. [_target,_title,_idleIcon,_progressIcon,_condShow,_condProgress,_codeStart,_codeProgress,_codeCompleted,_codeInterupted,_arguments,_duration,_priority,_removeCompleted,_showUncon] remoteExec ["BIS_fnc_holdActionAdd",0,true];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement