mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Move objects with disabled simulation to ground
In addition to simulation type house, disabled simulation objects will also be floating - this is usually done to prevent clipping or falling of small objects objects through objects they are placed on
This commit is contained in:
parent
60d98df5fc
commit
4868aacb42
@ -16,8 +16,8 @@
|
||||
// setVectorUp requires local object
|
||||
if (!local _this) exitWith {};
|
||||
|
||||
if ((getText (configFile >> "CfgVehicles" >> (typeOf _this) >> "simulation")) == "house") then {
|
||||
//Houses don't have gravity/physics, so make sure they are not floating
|
||||
// Objects with disabled simulation and objects with simulation type "house" don't have gravity/physics, so make sure they are not floating
|
||||
if (!simulationEnabled _this || {getText (configFile >> "CfgVehicles" >> (typeOf _this) >> "simulation") == "house"}) then {
|
||||
private _posAbove = (getPos _this) select 2;
|
||||
TRACE_2("house",_this,_posAbove);
|
||||
if (_posAbove > 0.1) then {
|
||||
|
Loading…
Reference in New Issue
Block a user