Tweaked Vehicle spawn (bug into ground fixed)

This commit is contained in:
He-Man 2019-01-20 22:22:10 +01:00
parent 6d26704077
commit feffbaa6f3
2 changed files with 3 additions and 2 deletions

View File

@ -42,8 +42,9 @@ if !(isNull _vehObj) then{
_vehObj setposATL _position; _vehObj setposATL _position;
_vehObj setVectorDirAndUp _direction; _vehObj setVectorDirAndUp _direction;
} else { } else {
_vehObj setposATL _position;
_vehObj setdir _direction; _vehObj setdir _direction;
_vehObj setVectorUp surfaceNormal _position;
_vehObj setposATL _position;
}; };
// Normalize vehicle inventory // Normalize vehicle inventory
clearWeaponCargoGlobal _vehObj; clearWeaponCargoGlobal _vehObj;

View File

@ -133,7 +133,7 @@ for "_i" from 1 to _spawnCount do {
_collide = "CAN_COLLIDE"; _collide = "CAN_COLLIDE";
if (_getRandomPos) then{ if (_getRandomPos) then{
_collide = "NONE"; _collide = "NONE";
_position set[2, 0]; _position set[2, 0.1];
if (surfaceIsWater _position) then{ if (surfaceIsWater _position) then{
_position = ASLToATL _position; _position = ASLToATL _position;
}; };