Genyuumaru
New Member
- Reaction score
- 15
The yellow ones like when you give a wrong order. How are they made?
function SimError takes player ForPlayer, string msg returns nothing
if udg_SimError==null then
set udg_SimError = CreateSoundFromLabel("InterfaceError", false, false, false, 10, 10)
endif
if GetLocalPlayer() == ForPlayer then
call ClearTextMessages()
call DisplayTimedTextToPlayer(ForPlayer, 0.52, -1.00, 2.00, "|c00FFCC00" + msg + "|r")
call StartSound(udg_SimError)
endif
endfunction