mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fixed logic problem
This commit is contained in:
parent
02e3e1c7ec
commit
5c87161118
@ -29,18 +29,19 @@ if (animationState _unit != "ACE_FastRoping") exitWith {
|
||||
_unit disableCollisionWith _dummy;
|
||||
_unit attachTo [_dummy, [0, 0, -1.45]];
|
||||
[_unit, "ACE_FastRoping", 2] call EFUNC(common,doAnimation);
|
||||
|
||||
[{
|
||||
params ["_args", "_idPFH"];
|
||||
_args params ["_unit"];
|
||||
|
||||
if (isNull (attachedTo _unit)) exitWith {
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
playSound QGVAR(Rope);
|
||||
}, 1, [_unit]] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
||||
[{
|
||||
params ["_args", "_idPFH"];
|
||||
_args params ["_unit"];
|
||||
|
||||
if (isNull (attachedTo _unit)) exitWith {
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
playSound QGVAR(Rope);
|
||||
}, 1, [_unit]] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
//End of fast rope
|
||||
if (isNull attachedTo _unit) exitWith {
|
||||
|
Loading…
Reference in New Issue
Block a user