mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #2745 from acemod/fixChairsOverWater
Use AGL for sitting setPos
This commit is contained in:
commit
cb65a67a3e
@ -58,8 +58,8 @@ _sitRotation = if (isNumber (_configFile >> QGVAR(sitRotation))) then {getNumber
|
|||||||
|
|
||||||
// Set direction and position
|
// Set direction and position
|
||||||
_player setDir _sitDirection;
|
_player setDir _sitDirection;
|
||||||
// No need for ATL/ASL as modelToWorld returns in format position
|
//modelToWorld returns AGL
|
||||||
_player setPos (_seat modelToWorld _sitPosition);
|
_player setPosASL (AGLtoASL (_seat modelToWorld _sitPosition));
|
||||||
|
|
||||||
// Set variables
|
// Set variables
|
||||||
_player setVariable [QGVAR(isSitting), true];
|
_player setVariable [QGVAR(isSitting), true];
|
||||||
|
Loading…
Reference in New Issue
Block a user