mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
End spectator interface when the mission ends
Fixes #2592 (in theory) by forcing spectator closed on mission end
This commit is contained in:
parent
0beaa40fbc
commit
b1dda86cb2
@ -8,3 +8,6 @@
|
||||
GVAR(availableModes) = [[0,1,2], [1,2], [0], [1], [2]] select GVAR(restrictModes);
|
||||
GVAR(availableVisions) = [[-2,-1,0,1], [-2,-1], [-2,0,1], [-2]] select GVAR(restrictVisions);
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
||||
// Should prevent unending spectator on mission end
|
||||
addMissionEventHandler ["Ended",{ [false] call FUNC(setSpectator) }];
|
||||
|
Loading…
Reference in New Issue
Block a user