Skip to content

Commit

Permalink
Flags - Fix flag pushing player backwards when placing (#10703)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timi007 authored Feb 3, 2025
1 parent 80eb922 commit bb81c56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/flags/functions/fnc_placeFlag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ GVAR(objectHeight) = MIN_HEIGHT;
GVAR(isPlacing) = PLACE_WAITING;

private _flag = _carrierClass createVehicle [0, 0, 0];
_flag setPhysicsCollisionFlag false; // Issue #10693

// Add info dialog for the player which show the controls
private _placeFlagText = format [LLSTRING(Place), _flagName];
Expand Down Expand Up @@ -60,6 +61,7 @@ private _mouseClickID = [_player, "DefaultAction", {
[_player, "PutDown"] call EFUNC(common,doGesture);

_player removeItem _item;
_flag setPhysicsCollisionFlag true;

// Provide hook
[QGVAR(placed), [_player, _flag, _item]] call CBA_fnc_localEvent;
Expand Down

0 comments on commit bb81c56

Please sign in to comment.