1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Merge pull request #362 from metrostroi-repo/#355

#355
This commit is contained in:
HellReach
2021-11-06 18:12:48 +03:00
committed by GitHub

View File

@@ -164,6 +164,7 @@ function TRAIN_SYSTEM:TriggerInput(name,value)
local HaveUAVA = not self.Train.SubwayTrain or not self.Train.SubwayTrain.ARS or not self.Train.SubwayTrain.ARS.NoUAVA
if HaveUAVA and self.Train.UAVA.Value == 0 then
self.EmergencyValve = true
self.Train.UAVAC:TriggerInput("Set",0)
if value > 0 then RunConsoleCommand("say","Autostop braking",self.Train:GetDriverName()) end
end
end