Update fn_ImportFromM3E_Static.sqf

Rectify importing logic.

Thanks to "HorsefedDave#8870" on Discord from "Kubotas PVE Exile".
This commit is contained in:
eraser1 2021-09-27 12:00:50 -05:00 committed by GitHub
parent c523a82cd1
commit 48e530bfb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,15 +50,16 @@ private _objs = _export apply
private _pos = _x select 1; 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 setPosATL _pos;
_obj setVectorDirAndUp (_x select 3);
} }
else else
{ {
_obj setPosATL _pos; _obj setDir (_x select 2);
_obj setVectorDirAndUp (_x select 3); _obj setPos _pos;
}; };
_obj; _obj;