BIS fnc taskTypeIcon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " 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 3: | Line 3: | ||
| arma3 |Game= | | arma3 |Game= | ||
|1.58 | |1.58 | ||
|gr1 = Tasks | |gr1 = Tasks | ||
| Returns path to the icon texture associated with given task type. {{Informative| See [[Arma 3: Task Framework]] for more information.}} | | Returns path to the icon texture associated with given task type. {{Informative| See [[Arma 3: Task Framework]] for more information.}} | ||
| [type, default] call [[BIS_fnc_taskTypeIcon]] | | [type, default] call [[BIS_fnc_taskTypeIcon]] | ||
|p1= type: [[String]] - Task type | |p1= type: [[String]] - Task type | ||
|p2= default: [[Config]] - Config path to get default path from, if '''type''' does not exist | |p2= default: [[Config]] - Config path to get default path from, if '''type''' does not exist | ||
| [[String]] - Path to the task type texture. | | [[String]] - Path to the task type texture. | ||
|x1= <code>["attack",[[configFile]] >> "CfgTaskTypes" >> "Run" >> "icon"] [[call]] [[BIS_fnc_taskTypeIcon]];</code> | |x1= <code>["attack",[[configFile]] >> "CfgTaskTypes" >> "Run" >> "icon"] [[call]] [[BIS_fnc_taskTypeIcon]];</code> | ||
| [[:Category:Function Group: Tasks|Task Functions]] [[Arma 3: Task Framework]] | | [[:Category:Function Group: Tasks|Task Functions]] [[Arma 3: Task Framework]] | ||
}} | }} | ||
Revision as of 00:48, 18 January 2021
Description
- Description:
- Returns path to the icon texture associated with given task type.
- Execution:
- call
- Groups:
- Tasks
Syntax
- Syntax:
- [type, default] call BIS_fnc_taskTypeIcon
- Parameters:
- type: String - Task type
- default: Config - Config path to get default path from, if type does not exist
- Return Value:
- String - Path to the task type texture.
Examples
- Example 1:
["attack",configFile >> "CfgTaskTypes" >> "Run" >> "icon"] call BIS_fnc_taskTypeIcon;
Additional Information
- See also:
- Task Functions Arma 3: Task Framework
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