From d2038ab287fb9fdddf6bdce86cc169a6399361e4 Mon Sep 17 00:00:00 2001 From: Wakbub Date: Mon, 2 May 2022 23:03:51 +0000 Subject: [PATCH] Spottingscope - Fix destruction of Spotting Scope (#8893) Fix `Error setposasl: Type Object, expected Array` when destroying Spotting Scope. --- addons/spottingscope/XEH_preInit.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/spottingscope/XEH_preInit.sqf b/addons/spottingscope/XEH_preInit.sqf index 79c7ec515b..568b6c2e4a 100644 --- a/addons/spottingscope/XEH_preInit.sqf +++ b/addons/spottingscope/XEH_preInit.sqf @@ -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;