Prevent virtual spectators falling into water (#5832)

Fix #5775
This commit is contained in:
SilentSpike 2017-11-30 22:51:34 +00:00 committed by PabstMirror
parent d357395b4b
commit 1f987c0f3d

View File

@ -44,6 +44,9 @@ if (_respawn in [4,5]) then {
private _grp = createGroup [sideLogic, true]; private _grp = createGroup [sideLogic, true];
private _virtual = _grp createUnit [QGVAR(virtual),[0,0,0],[],0,""]; private _virtual = _grp createUnit [QGVAR(virtual),[0,0,0],[],0,""];
// Prevent unit falling into water (compatibility for some addons)
_virtual enableSimulation false;
// Transfer assigned zeus if applicable // Transfer assigned zeus if applicable
private _zeus = getAssignedCuratorLogic player; private _zeus = getAssignedCuratorLogic player;
if !(isNull _zeus) then { if !(isNull _zeus) then {