Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Fix rope trying to attach to CRRC on release #188

Merged
merged 1 commit into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/uh60_misc/functions/fnc_attachCRRC.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ if (!isNil "_attachedBoat") exitWith {
if (count (crew _boat) > 0) exitWith {hint "Boat is not empty"};
_boat lock true;
_boat attachTo [_helicopter, [0,1.5,-0.85]];
_boat enableRopeAttach false;
_helicopter setVariable ["vtx_crrc_attached", _boat, true];
1 change: 1 addition & 0 deletions addons/uh60_misc/functions/fnc_perFrame.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ if (!isNil "_attachedBoat") then {
_attachedBoat lock false;
_attachedBoat setVelocity (velocity _vehicle);
_vehicle setVariable ["vtx_crrc_attached", nil, true];
_attachedBoat enableRopeAttach true;
};
};