{"name":"BIS_fnc_3DENNotification","title":"BIS fnc 3DENNotification","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_3DENNotification","revid":352420,"updated":"2024-02-09T15:26:08Z","groups":["Eden Editor"],"status":"ok","games":{"arma3":"1.58"},"since":"arma3 1.58","arma3_since":"1.58","locality":{"effect":"local"},"description":"Shows notification banner with given text, animated or not, at the top of the screen in the Eden Editor.\nSince Arma 3 v2.10 this function will no longer throw an error outside of Eden Editor. Because `Display3DEN` (`findDisplay 313`) is not available, it will only play the sound according to the message type.\nThe sound is played through the UI channel with playSoundUI.","syntaxes":[{"syntax":"[text, type, duration, animate] call BIS_fnc_3DENNotification","params":[{"name":"text","type":"String or Structured Text","description":"either text or class from `\"Cfg3DEN\" >> \"Notifications\"`","type_expr":"String | Structured Text"},{"name":"type","type":"Number","optional":true,"default":"0","description":"0: Notification (Green) 1: Warning (Red)","type_expr":"Number","text":"type: Number - (Optional, default 0) 0: Notification (Green) 1: Warning (Red)"},{"name":"duration","type":"Number","optional":true,"default":"2","description":"duration in seconds (+ 1 sec for each new line)","type_expr":"Number","text":"duration: Number - (Optional, default 2) duration in seconds (+ 1 sec for each new line)"},{"name":"animate","type":"Boolean","optional":true,"default":"true","description":"toggle animation","type_expr":"Boolean","text":"animate: Boolean - (Optional, default true) toggle animation"},{"name":"volume","type":"Number","optional":true,"default":"1","description":"volume adjustment","type_expr":"Number","since":"arma3 2.10","text":"volume: Number - (Optional, default 1) volume adjustment"}],"returns":{"type":"Number","type_expr":"Number","description":"selected Mode"}}],"examples":[{"code":["[\"This is an animated notification\", 0] call BIS_fnc_3DENNotification;"]},{"code":["[\"This is a warning that is not animated\", 1, 2, false] call BIS_fnc_3DENNotification;"]},{"code":["[\"For more information visit <t colorLink='#E69710'><a href='https://community.bistudio.com/wiki/BIS_fnc_3DENNotification'>Community Wiki</a></t>\"] call BIS_fnc_3DENNotification;"]}],"see_also":["BIS_fnc_3DENShowMessage"]}