Random dir for static wpns

This commit is contained in:
He-Man 2018-11-26 21:57:00 +01:00 committed by GitHub
parent 371d462bb3
commit 199d503f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ for "_i" from 1 to _statics do
_allBldPsn = _allBldPsn - [_pos];
_staticClassName = selectRandom _typesStatics;
_obj = [_staticClassName, [0,0,0], true] call blck_fnc_spawnVehicle;
_obj setdir (random 359);
_obj setVariable["GRG_vehType","emplaced"];
_staticsSpawned pushBack _obj;
//diag_log format["_fnc_spawnGarrisonInsideBuilding_relPos: _obj = %1 | _staticsSpawned = %2",_obj,_staticsSpawned];