diff --git a/SQF/dayz_code/compile/fn_spawnObjects.sqf b/SQF/dayz_code/compile/fn_spawnObjects.sqf index e09de606c..e0279d882 100644 --- a/SQF/dayz_code/compile/fn_spawnObjects.sqf +++ b/SQF/dayz_code/compile/fn_spawnObjects.sqf @@ -15,9 +15,9 @@ Params: [ [ - ["ObjectType1", [position], dir], - ["ObjectType2", [position], dir], - ["ObjectType3", [position], dir] + ["ObjectType1", [position], dir, vectorUp(optional)], + ["ObjectType2", [position], dir, vectorUp(optional)], + ["ObjectType3", [position], dir, vectorUp(optional)] ], false, // Block damage false, // Use setPosATL instead of setPos @@ -63,8 +63,12 @@ _fires = [ _object setPos (_x select 1); }; + if (count _x > 3) then { + _object setVectorUp (_x select 3); + }; + if (_blockDamage) then { _object addEventHandler ["HandleDamage",{0}]; if !(_type in _fires) then {_object enableSimulation false;}; }; -} forEach _objects; \ No newline at end of file +} forEach _objects;