Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. //By Eagledude4
  2. params ["_vcl"];
  3.  
  4. [
  5. _vcl, // Object the action is attached to
  6. "Lockpick Vehicle", // Title of the action
  7. "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Idle icon shown on screen
  8. "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Progress icon shown on screen
  9. "_this distance _target < 3 && locked _target > 1", // Condition for the action to be shown
  10. '_caller distance _target < 3 && locked _target > 1 && currentWeapon player == ""', // Condition for the action to progress
  11. { // Code executed when action starts
  12. if (currentWeapon player != "") then {
  13. [player] call ace_weaponselect_fnc_putWeaponAway;
  14. waitUntil {animationState player == "amovpercmstpsnonwnondnon"};
  15. };
  16. },
  17. {}, // Code executed on every progress tick
  18. {_target lock 0}, // Code executed on completion
  19. {}, // Code executed on interrupted
  20. [], // Arguments passed to the scripts as _this select 3
  21. 10, // Action duration [s]
  22. 0, // Priority
  23. false, // Remove on completion
  24. false // Show in unconscious state
  25. ] spawn BIS_fnc_holdActionAdd;
  26. //] remoteExec ["BIS_fnc_holdActionAdd",-2,_vcl]; // example for MP compatible implementation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement