Page MenuHomeFeedback Tracker

BIS_fnc_showNotification not working
New, WishlistPublic

Description

Depending on (official) parameters provided to call BIS_fnc_showNotification it fails. {F22815}

Details

Legacy ID
387378879
Severity
None
Resolution
Open
Reproducibility
Always
Category
Config
Steps To Reproduce

Load a mission in the Arma 3 Editor

use the Debug console for:
["TaskSucceeded",["Disable the nuke"]] call BIS_fnc_showNotification;

The notification will appear in 90% of the cases, however always without the given texts. Same problem with

["TaskAssigned",["Disable the nuke"]] call BIS_fnc_showNotification;

only "ScoreAdded" seems to work.

Additional Information

Using the german translation of Arma 3

Event Timeline

DevArmitxes edited Additional Information. (Show Details)
DevArmitxes set Category to Config.
DevArmitxes set Reproducibility to Always.
DevArmitxes set Severity to None.
DevArmitxes set Resolution to Open.
DevArmitxes set Legacy ID to 387378879.May 7 2016, 5:29 PM
Bohemia added a subscriber: AD2001.Nov 22 2013, 3:37 PM

Did you turn -showscripterrors in your startoptions on? Do you got Errormessages?
Did you create in the description.ext of your mission a "TaskSucceed" or "TaskAssigned" class?

Should look something like this:
class CfgNotifications
{
class TaskSucceed
{

		title = "Task has been succeeded";
		iconPicture = "a3\ui_f\data\map\Markers\Flags\nato_ca.paa";
		description = "%1"; //Text inserted which is given by the second statement
		color[] = {1,1,1,1}; //white color
		priority = 0;
		duration = 6;

};
}

["TaskSucceeded",["Disable the nuke"]] call BIS_fnc_showNotification; should now work.
Not tested though

@Heisenberg for the mentioned default templates that step is optional. However, with or without it the result is the same ;)

Edit: no scripterrors.

Alright.
Then the default template should have a problem, because with the cosumized one (eg the one is added) it works every time.

Larrow added a subscriber: Larrow.May 7 2016, 5:29 PM

The description for task notifications is %2 e.g
["TaskSucceeded",["", "Disable the nuke"]] call BIS_fnc_showNotification;

Its like this so you can send your default task array to the notification function and it will display the title rather than the long description

@Larrow thanks! Issue solved. Hope BI can update the wiki, it's misleading ;)