Description
Shows notification banner with given text, animated or not, at the top of the screen in the Eden Editor.
Since 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.
The sound is played through the UI channel with playSoundUI.
Syntax
[text, type, duration, animate] call BIS_fnc_3DENNotification
Parameters:
text: String or Structured Text - either text or class from"Cfg3DEN" >> "Notifications"type: Number - (Optional, default 0) 0: Notification (Green) 1: Warning (Red)duration: Number - (Optional, default 2) duration in seconds (+ 1 sec for each new line)animate: Boolean - (Optional, default true) toggle animationvolume: Number - (Optional, default 1) volume adjustment (since arma3 2.10)
Returns: Number - selected Mode
Examples
Example 1
["This is an animated notification", 0] call BIS_fnc_3DENNotification;
Example 2
["This is a warning that is not animated", 1, 2, false] call BIS_fnc_3DENNotification;
Example 3
["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;