From 946c80d211816fb62c9ac9ef227b75d0ee06c7d9 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Mon, 18 Nov 2013 10:21:42 -0600 Subject: [PATCH] same --- SQF/dayz_code/compile/local_roadDebris.sqf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SQF/dayz_code/compile/local_roadDebris.sqf diff --git a/SQF/dayz_code/compile/local_roadDebris.sqf b/SQF/dayz_code/compile/local_roadDebris.sqf new file mode 100644 index 000000000..615f37528 --- /dev/null +++ b/SQF/dayz_code/compile/local_roadDebris.sqf @@ -0,0 +1,16 @@ +private ["_spawnveh","_position","_direction","_veh"]; +{ + _spawnveh = _x select 0; + _position = _x select 1; + _direction = _x select 2; + + //diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position)); + + _veh = _spawnveh createVehicleLocal _position; + _veh enableSimulation false; + + // Randomize placement a bit + _veh setDir _direction; + _veh setpos _position; + +} forEach _this; \ No newline at end of file