#SRS Improvements

This commit is contained in:
Applevangelist
2023-11-03 13:33:21 +01:00
parent f0de6ca9e1
commit b1823824c2
7 changed files with 126 additions and 30 deletions

View File

@@ -521,6 +521,9 @@ end
function MESSAGE:ToSRS(frequency,modulation,gender,culture,voice,coalition,volume,coordinate)
if _MESSAGESRS.SRSQ then
_MESSAGESRS.MSRS:SetVoice(voice or _MESSAGESRS.Voice)
if coordinate then
_MESSAGESRS.MSRS:SetCoordinate(coordinate)
end
_MESSAGESRS.SRSQ:NewTransmission(self.MessageText,nil,_MESSAGESRS.MSRS,nil,nil,nil,nil,nil,frequency,modulation,gender or _MESSAGESRS.Gender,culture or _MESSAGESRS.Culture,voice or _MESSAGESRS.Voice,volume,self.MessageCategory)
end
return self