From 48e530bfb517c6276357013dee83c94d4432431b Mon Sep 17 00:00:00 2001 From: eraser1 Date: Mon, 27 Sep 2021 12:00:50 -0500 Subject: [PATCH] Update fn_ImportFromM3E_Static.sqf Rectify importing logic. Thanks to "HorsefedDave#8870" on Discord from "Kubotas PVE Exile". --- .../addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf index f2798bc..dde0ab3 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf @@ -50,15 +50,16 @@ private _objs = _export apply private _pos = _x select 1; - if (_x select 4) then + if (((count _x)>4) && {!(_x select 4)}) then { - _obj setDir (_x select 2); + // Supports bank/pitch _obj setPosATL _pos; + _obj setVectorDirAndUp (_x select 3); } else { - _obj setPosATL _pos; - _obj setVectorDirAndUp (_x select 3); + _obj setDir (_x select 2); + _obj setPos _pos; }; _obj;