mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8731bcc8b5
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com> Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
40 lines
957 B
Plaintext
40 lines
957 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Garth 'L-H' de Wet, Ruthberg, commy2, Smith
|
|
* Cancels unloading when deploying.
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* player call ace_cargo_fnc_deployCancel
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
if (GVAR(deployPFH) == -1) exitWith {};
|
|
|
|
// Remove deployment pfh
|
|
GVAR(deployPFH) call CBA_fnc_removePerFrameHandler;
|
|
GVAR(deployPFH) = -1;
|
|
|
|
params ["_unit"];
|
|
|
|
// Enable running again
|
|
[_unit, "forceWalk", QUOTE(ADDON), false] call EFUNC(common,statusEffect_set);
|
|
[_unit, "blockThrow", QUOTE(ADDON), false] call EFUNC(common,statusEffect_set);
|
|
|
|
// Delete placement dummy
|
|
deleteVehicle GVAR(itemPreviewObject);
|
|
|
|
// Remove mouse button actions
|
|
call EFUNC(interaction,hideMouseHint);
|
|
|
|
[_unit, "DefaultAction", _unit getVariable [QGVAR(deploy), -1]] call EFUNC(common,removeActionEventHandler);
|
|
_unit setVariable [QGVAR(deploy), -1];
|
|
|
|
_unit setVariable [QGVAR(isDeploying), false, true];
|