Spottingscope - Fix destruction of Spotting Scope (#8893)

Fix `Error setposasl: Type Object, expected Array` when destroying Spotting Scope.
This commit is contained in:
Wakbub 2022-05-02 23:03:51 +00:00 committed by GitHub
parent ad5c275532
commit d2038ab287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ PREP_RECOMPILE_END;
private _tube = "ACE_SpottingScope_tube" createVehicle [0,0,0]; private _tube = "ACE_SpottingScope_tube" createVehicle [0,0,0];
_tube setDir (getDir _wreck - 180); _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 setVelocity [1 - random 2, 1 - random 2, 4];
_tube addTorque (vectorNormalized [1 - random 2, 1 - random 2, 1 - random 2] vectorMultiply 4); _tube addTorque (vectorNormalized [1 - random 2, 1 - random 2, 1 - random 2] vectorMultiply 4);
}] call CBA_fnc_addClassEventHandler; }] call CBA_fnc_addClassEventHandler;