mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Tweaked Vehicle spawn (bug into ground fixed)
This commit is contained in:
parent
6d26704077
commit
feffbaa6f3
@ -42,8 +42,9 @@ if !(isNull _vehObj) then{
|
||||
_vehObj setposATL _position;
|
||||
_vehObj setVectorDirAndUp _direction;
|
||||
} else {
|
||||
_vehObj setposATL _position;
|
||||
_vehObj setdir _direction;
|
||||
_vehObj setVectorUp surfaceNormal _position;
|
||||
_vehObj setposATL _position;
|
||||
};
|
||||
// Normalize vehicle inventory
|
||||
clearWeaponCargoGlobal _vehObj;
|
||||
|
@ -133,7 +133,7 @@ for "_i" from 1 to _spawnCount do {
|
||||
_collide = "CAN_COLLIDE";
|
||||
if (_getRandomPos) then{
|
||||
_collide = "NONE";
|
||||
_position set[2, 0];
|
||||
_position set[2, 0.1];
|
||||
if (surfaceIsWater _position) then{
|
||||
_position = ASLToATL _position;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user