BIS fnc taskTypeIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (page formatting)
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|=
{{RV|type=function


| arma3 |Game=
|game1= arma3
|version1= 1.58


|1.58|Game Version=
|gr1= Tasks


| Returns path to the icon texture associated with given task type. {{Informative| See [[Arma 3 Task Framework]] for more information.}}|Description=
|descr= Returns path to the icon texture associated with given task type. {{Feature|informative| See [[Arma 3: Task Framework]] for more information.}}


| [type, default] call [[BIS_fnc_taskTypeIcon]] |Syntax=
|s1= [type, default] call [[BIS_fnc_taskTypeIcon]]


|p1= type: [[String]] - Task type |Parameter 1=
|p1= type: [[String]] - task type


|p2= default: [[Config]] - Config path to get default path from, if '''type''' does not exist |Parameter 2=
|p2= default: [[Config]] - config path to get default path from, if '''type''' does not exist


| [[String]] - Path to the task type texture. |Return Value=
|r1= [[String]] - path to the task type texture.


|x1= <code>["attack",[[configFile]] >> "CfgTaskTypes" >> "Run" >> "icon"] [[call]] [[BIS_fnc_taskTypeIcon]];</code>|Example 1=
|x1= <sqf>["attack",configFile >> "CfgTaskTypes" >> "Run" >> "icon"] call BIS_fnc_taskTypeIcon;</sqf>


| [[:Category:Function Group: Tasks|Task Functions]] [[Arma 3 Task Framework]] |See Also=
|seealso=  [[Arma 3: Task Framework]]
}}
}}
[[Category:Function Group: Tasks|{{uc:taskHint}}]]
[[Category:Functions|{{uc:taskHint}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:taskHint}}]]

Latest revision as of 01:24, 2 February 2024

Hover & click on the images for description

Description

Description:
Returns path to the icon texture associated with given task type.
See Arma 3: Task Framework for more information.
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:
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