Advertisement
zSkullfox

Untitled

Apr 9th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. _intel = param[0,objNull];
  2. _duration = param[1,5];
  3.  
  4. _cat = param[2,"category"];
  5. _title = param[3,"title"];
  6. _text = param[4,"Information gathered"];
  7.  
  8. [
  9. _intel, // Object the action is attached to
  10. _title, // Title of the action
  11. "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Idle icon shown on screen
  12. "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Progress icon shown on screen
  13. "_this distance _target < 3", // Condition for the action to be shown
  14. "_caller distance _target < 3", // Condition for the action to progress
  15. {}, // Code executed when action starts
  16. {}, // Code executed on every progress tick
  17. {
  18. params ["_target", "_caller", "_actionId", "_arguments"];
  19. player createDiaryRecord ["Diary", [_arguments select 0,_arguments select 1]];
  20. deleteVehicle _target;
  21. }, // Code executed on completion
  22. {}, // Code executed on interrupted
  23. [_cat,_text], // Arguments passed to the scripts as _this select 3
  24. _duration, // Action duration [s]
  25. 1, // Priority
  26. true, // Remove on completion
  27. false // Show in unconscious state
  28. ] call BIS_fnc_holdActionAdd; // MP compatible implementation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement