BIS fnc showNotification: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|0.50|Game version=
|0.50


|gr1= GUI |GROUP1=
|gr1= GUI


|eff= local |MPEFFECTS=
|eff= local |MPEFFECTS=


| Show [[Notification]]. |DESCRIPTION=
| Show [[Notification]].


| [template,(arguments)] call [[BIS_fnc_showNotification]]; |SYNTAX=
| [template,(arguments)] call [[BIS_fnc_showNotification]];


|p1= '''template''': [[String]] - notification template from ''CfgNotifications'' |Parameter1=
|p1= '''template''': [[String]] - notification template from ''CfgNotifications''
|p2= '''arguments''': [[Array]] - additional arguments passed to the template (default: []) |Parameter2=
|p2= '''arguments''': [[Array]] - additional arguments passed to the template (default: [])


| [[Boolean]] |RETURNVALUE=
| [[Boolean]]
   
   
|x1= <code>["TaskSucceeded",["","Disable the nuke"]] [[call]] [[BIS_fnc_showNotification]];</code> |Example1=
|x1= <code>["TaskSucceeded",["","Disable the nuke"]] [[call]] [[BIS_fnc_showNotification]];</code>


|x2= <code>["ScoreAdded",["Disabled the nuke without triggering an alarm.",5]] [[call]] [[BIS_fnc_showNotification]];</code> |Example2=
|x2= <code>["ScoreAdded",["Disabled the nuke without triggering an alarm.",5]] [[call]] [[BIS_fnc_showNotification]];</code>


| [[Notification]] |SEEALSO=
| [[Notification]]


}}
}}

Revision as of 00:48, 18 January 2021

Hover & click on the images for description

Description

Description:
Show Notification.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[template,(arguments)] call BIS_fnc_showNotification;
Parameters:
template: String - notification template from CfgNotifications
arguments: Array - additional arguments passed to the template (default: [])
Return Value:
Boolean

Examples

Example 1:
["TaskSucceeded",["","Disable the nuke"]] call BIS_fnc_showNotification;
Example 2:
["ScoreAdded",["Disabled the nuke without triggering an alarm.",5]] call BIS_fnc_showNotification;

Additional Information

See also:
Notification

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Bottom Section