Skip to content

Commit

Permalink
Spottingscope - Fix destruction of Spotting Scope (#8893)
Browse files Browse the repository at this point in the history
Fix `Error setposasl: Type Object, expected Array` when destroying Spotting Scope.
  • Loading branch information
Wakbub authored May 2, 2022
1 parent ad5c275 commit d2038ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/spottingscope/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PREP_RECOMPILE_END;

private _tube = "ACE_SpottingScope_tube" createVehicle [0,0,0];
_tube setDir (getDir _wreck - 180);
_tube setPosASL _wreck modelToWorldWorld (_wreck selectionPosition "destructionEffect");
_tube setPosASL (_wreck modelToWorldWorld (_wreck selectionPosition "destructionEffect"));
_tube setVelocity [1 - random 2, 1 - random 2, 4];
_tube addTorque (vectorNormalized [1 - random 2, 1 - random 2, 1 - random 2] vectorMultiply 4);
}] call CBA_fnc_addClassEventHandler;
Expand Down

0 comments on commit d2038ab

Please sign in to comment.