BIS fnc showNotification: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) 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 | {{Function | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
|gr1= GUI | |gr1= GUI | ||
|eff= local |MPEFFECTS= | |eff= local |MPEFFECTS= | ||
| Show [[Notification]]. | | Show [[Notification]]. | ||
| [template,(arguments)] call [[BIS_fnc_showNotification]]; | | [template,(arguments)] call [[BIS_fnc_showNotification]]; | ||
|p1= '''template''': [[String]] - notification template from ''CfgNotifications'' | |p1= '''template''': [[String]] - notification template from ''CfgNotifications'' | ||
|p2= '''arguments''': [[Array]] - additional arguments passed to the template (default: []) | |p2= '''arguments''': [[Array]] - additional arguments passed to the template (default: []) | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>["TaskSucceeded",["","Disable the nuke"]] [[call]] [[BIS_fnc_showNotification]];</code> | |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> | |x2= <code>["ScoreAdded",["Disabled the nuke without triggering an alarm.",5]] [[call]] [[BIS_fnc_showNotification]];</code> | ||
| [[Notification]] | | [[Notification]] | ||
}} | }} |
Revision as of 23:48, 17 January 2021
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