18 lines
470 B
C#
18 lines
470 B
C#
using Content.Server._White.TTS;
|
|
using Content.Shared.Humanoid;
|
|
|
|
namespace Content.Server.Humanoid;
|
|
|
|
public sealed partial class HumanoidAppearanceSystem
|
|
{
|
|
// ReSharper disable once InconsistentNaming
|
|
public void SetTTSVoice(EntityUid uid, string voiceId, HumanoidAppearanceComponent humanoid)
|
|
{
|
|
if (!TryComp<TTSComponent>(uid, out var comp))
|
|
return;
|
|
|
|
humanoid.Voice = voiceId;
|
|
comp.VoicePrototypeId = voiceId;
|
|
}
|
|
}
|