Skip to content

Commit

Permalink
vv timers edit now work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
modern-nm committed Jun 14, 2024
1 parent 90c559a commit 115cc61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Content.Server/ADT/AutoPostingChat/AutoPostingChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private void OnComponentStartup(EntityUid uid, AutoPostingChatComponent componen

_chat.TrySendInGameICMessage(uid, component.PostingMessageSpeak, InGameICChatType.Speak, ChatTransmitRange.Normal);
}
speakTimer.Interval = component.SpeakTimerRead;
};
var emoteTimer = new System.Timers.Timer(component.EmoteTimerRead); // 9000 миллисекунд = 9 секунд по умолчанию
emoteTimer.Elapsed += (sender, eventArgs) =>
Expand All @@ -76,6 +77,7 @@ private void OnComponentStartup(EntityUid uid, AutoPostingChatComponent componen
// emoteTimer.Stop();
_chat.TrySendInGameICMessage(uid, component.PostingMessageEmote, InGameICChatType.Emote, ChatTransmitRange.Normal);
}
emoteTimer.Interval = component.EmoteTimerRead;
};
// Запускаем таймеры
speakTimer.Start();
Expand Down

0 comments on commit 115cc61

Please sign in to comment.