NINJA EDIT

This commit is contained in:
eraser1 2017-06-08 13:16:15 -05:00
parent f9167e362d
commit f6f95b76c3
3 changed files with 3 additions and 5 deletions

View File

@ -51,7 +51,7 @@ private _objs = _export apply
{
// Create the object
private _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"];
_obj enableSimulationGlobal false;
_obj enableSimulationGlobal true;
// Calculate the object's position using provided relative position
private _objPos = [_pos,_x select 1] call DMS_fnc_CalcPos;

View File

@ -52,8 +52,6 @@ if ((isNil "_export") || {!(_export isEqualType [])}) exitWith
private _objs = _export apply
{
private _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"];
_obj enableSimulationGlobal false;
private _pos = (_x select 1) vectorAdd [0,0,5000];
if (_x select 4) then
@ -65,6 +63,7 @@ private _objs = _export apply
{
_obj setPosATL _pos;
_obj setVectorDirAndUp (_x select 3);
_obj enableSimulationGlobal false;
};
_obj;

View File

@ -46,8 +46,6 @@ if ((isNil "_export") || {!(_export isEqualType [])}) exitWith
private _objs = _export apply
{
private _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"];
_obj enableSimulationGlobal false;
private _pos = _x select 1;
if (_x select 4) then
@ -59,6 +57,7 @@ private _objs = _export apply
{
_obj setPosATL _pos;
_obj setVectorDirAndUp (_x select 3);
_obj enableSimulationGlobal false;
};
_obj;