Merge pull request #2745 from acemod/fixChairsOverWater

Use AGL for sitting setPos
This commit is contained in:
PabstMirror 2015-10-14 13:19:54 -05:00
commit cb65a67a3e

View File

@ -58,8 +58,8 @@ _sitRotation = if (isNumber (_configFile >> QGVAR(sitRotation))) then {getNumber
// Set direction and position
_player setDir _sitDirection;
// No need for ATL/ASL as modelToWorld returns in format position
_player setPos (_seat modelToWorld _sitPosition);
//modelToWorld returns AGL
_player setPosASL (AGLtoASL (_seat modelToWorld _sitPosition));
// Set variables
_player setVariable [QGVAR(isSitting), true];