API:SendWarningMsg

__NOTOC__
SendWarningMsg
SendWarningMsg(text)
Display a standard warning message and play a sound within the game client. The message will automatically fade away.
The definition can be found within the module fdb\interface\worldxml\uiparent.lua.
function SendWarningMsg( text )
	PlaySoundByPath("sound\\interface\\ui_sysmsg_warning.mp3");
	WarningFrame:AddMessage(text, 0.93, 0.11, 0.14);	
end
== Parameters ==
=== Arguments ===
:;text
::string - The warning message to display.
=== Returns ===
:;nil
::void - A method call without return value.
== Example ==
local osdate = os.date();
SendWarningMsg("SendWarningMsg: os.date() returns "..osdate);
== Notes ==
The text will be displayed e.g. when like trying to cast a spell while not standing.
== Related Functions ==
* SendSystemMsg
* SendSystemChat
* PlaySoundByPath