BIS fnc taskSetType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


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


|1.58
|arg= global
|eff= global|gr1= Tasks


|arg= global|Multiplayer Arguments=
|descr= Sets task type to given task. {{Feature|informative| See [[Arma 3: Task Framework]] for more information.}}


|eff= global|Multiplayer Effects=
|s1= [taskID,type] call [[BIS_fnc_taskSetType]]


|gr1 = Tasks
|p1= taskID: [[String]] - task ID


| Sets task type to given task. {{Informative| See [[Arma 3: Task Framework]] for more information.}}
|p2= taskType: [[String]] - task Type from [[configfile]] >> "CfgTaskTypes"


| [taskID,type] call [[BIS_fnc_taskSetType]]
|r1= [[String]] - task ID.


|p1= taskID: [[String]] - Task ID
|x1= <sqf>["BIS_Task_01","attack"] call BIS_fnc_taskSetType;</sqf>


|p2= taskType: [[String]] - Task Type from [[configfile]] >> "CfgTaskTypes"
|seealso=  [[Arma 3: Task Framework]]
 
| [[String]] -  Task ID.
 
|x1= <code>["BIS_Task_01","attack"] [[call]] [[BIS_fnc_taskSetType]];</code>
 
| [[:Category:Function Group: Tasks|Task Functions]] [[Arma 3: Task Framework]]
}}
}}
[[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:
Sets task type to given task.
See Arma 3: Task Framework for more information.
Execution:
call
Groups:
Tasks

Syntax

Syntax:
[taskID,type] call BIS_fnc_taskSetType
Parameters:
taskID: String - task ID
taskType: String - task Type from configfile >> "CfgTaskTypes"
Return Value:
String - task ID.

Examples

Example 1:
["BIS_Task_01","attack"] call BIS_fnc_taskSetType;

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