Implement "AllowEnemiesInImmobile" into vehicle spawns

This commit is contained in:
Filip Maciejewski 2019-09-05 10:14:02 +02:00
parent 88a41fe5b7
commit fa2ea170e7
2 changed files with 5 additions and 2 deletions

View File

@ -77,8 +77,10 @@ _spawnedGroups pushBack _grp;
sleep 30;
if (((random 100) <= 25) && !(KP_liberation_guerilla_vehicles isEqualTo [])) then {
_vehicle = (selectRandom KP_liberation_guerilla_vehicles) createVehicle _startpos;
_grp = [_startpos, 2] call F_spawnGuerillaGroup;
private _vehicle = (selectRandom KP_liberation_guerilla_vehicles) createVehicle _startpos;
_vehicle call F_allowCrewInImmobile;
private _grp = [_startpos, 2] call F_spawnGuerillaGroup;
((units _grp) select 0) moveInDriver _vehicle;
((units _grp) select 1) moveInGunner _vehicle;

View File

@ -24,6 +24,7 @@ if ( _classname in opfor_choppers ) then {
_newvehicle flyInHeight (100 + (random 200));
} else {
_newvehicle = _classname createVehicle _spawnpos;
_vehicle call F_allowCrewInImmobile;
_newvehicle setpos _spawnpos;
};
_newvehicle allowdamage false;