taskHint: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 34: | Line 34: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>taskHint ["Task failed.\nBad job!", [1, 0, 0, 1], "taskFailed"];</sqf> | ||
|seealso= [[BIS_fnc_showNotification]] [[Task]] | |seealso= [[BIS_fnc_showNotification]] [[Task]] |
Revision as of 10:25, 13 May 2022
Description
- Description:
- Shows info about new, changed or failed task. The text can contain several lines.
\n is used to set a line return. - Groups:
- Briefing
Syntax
- Syntax:
- taskHint [text, colour, icon]
- Parameters:
- text: String
- colour: Array - format Color (RGBA)
- icon: String - one of:
- "taskNew"
- "taskCurrent"
- "taskDone"
- "taskFailed"
- Return Value:
- Nothing
Examples
- Example 1:
- taskHint ["Task failed.\nBad job!", [1, 0, 0, 1], "taskFailed"];
Additional Information
- See also:
- BIS_fnc_showNotification Task
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
- Posted on Jul 15, 2011 - 03:37 (UTC)
-
Here are the BIS colors:
taskHint ["New Task!\nHere's your new task!", [1, 1, 1, 1], "taskNew"]; taskHint ["Task Assigned!\nDo this now!", [1, 1, 1, 1], "taskCurrent"]; taskHint ["Task Succeeded!\nGood job!", [0.600000,0.839215,0.466666,1], "taskDone"]; taskHint ["Task Failed!\nBad job!", [0.972549,0.121568,0,1], "taskFailed"]; taskHint ["Task Canceled!\nNever mind!", [0.75,0.75,0.75,1], "taskFailed"];