Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //By Eagledude4
- params ["_vcl"];
- [
- _vcl, // Object the action is attached to
- "Lockpick Vehicle", // Title of the action
- "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Idle icon shown on screen
- "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Progress icon shown on screen
- "_this distance _target < 3 && locked _target > 1", // Condition for the action to be shown
- '_caller distance _target < 3 && locked _target > 1 && currentWeapon player == ""', // Condition for the action to progress
- { // Code executed when action starts
- if (currentWeapon player != "") then {
- [player] call ace_weaponselect_fnc_putWeaponAway;
- waitUntil {animationState player == "amovpercmstpsnonwnondnon"};
- };
- },
- {}, // Code executed on every progress tick
- {_target lock 0}, // Code executed on completion
- {}, // Code executed on interrupted
- [], // Arguments passed to the scripts as _this select 3
- 10, // Action duration [s]
- 0, // Priority
- false, // Remove on completion
- false // Show in unconscious state
- ] spawn BIS_fnc_holdActionAdd;
- //] remoteExec ["BIS_fnc_holdActionAdd",-2,_vcl]; // example for MP compatible implementation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement