Adds messageToCoalition

This commit is contained in:
Lugghawk 2019-01-05 21:27:00 -05:00
parent a23baf00e8
commit 4312f998c4

View File

@ -50,3 +50,13 @@ HOGGIT.MessageToAll = function(text, displayTime)
if not displayTime then displayTime = 10 end if not displayTime then displayTime = 10 end
trigger.action.outText(text, displayTime) trigger.action.outText(text, displayTime)
end end
--- Send a message to all players in the given coalition
-- @param coalition The coalition to send to (0 = neutral, 1 = red, 2 = blue)
-- @param text The text that is shown in the message
-- @param displayTime Amount of time in seconds to show the message
HOGGIT.MessageToCoalition = function(text, displayTime, coalition)
if not displayTime then displayTime = 10 end
trigger.action.outTextForCoalition(coalition, text, displayTime)
end