mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
same
This commit is contained in:
16
SQF/dayz_code/compile/local_roadDebris.sqf
Normal file
16
SQF/dayz_code/compile/local_roadDebris.sqf
Normal file
@@ -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;
|
||||||
Reference in New Issue
Block a user