BIS fnc taskSetType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added another example to BIS_fnc_taskSetType)
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.58


| arma3 |= Game name
|arg= global
|eff= global|gr1= Tasks


|1.00|= Game version
|descr= Sets task type to given task. {{Feature|informative| See [[Arma 3: Task Framework]] for more information.}}
____________________________________________________________________________________________


|<pre>/*
|s1= [taskID,type] call [[BIS_fnc_taskSetType]]


Description:
|p1= taskID: [[String]] - task ID
Sets task type to given task.


Parameters:
|p2= taskType: [[String]] - task Type from [[configfile]]  >> "CfgTaskTypes"
0: STRING - task id
1: STRING - task type


Returns:
|r1= [[String]] - task ID.
STRING - task id
*/


</pre>|= Description
|x1= <sqf>["BIS_Task_01","attack"] call BIS_fnc_taskSetType;</sqf>
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_taskSetType]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code>[_taskId:string,_taskType:string] call BIS_fnc_taskSetType;</code> |= EXAMPLE1
 
|x2= <code>["AttackMike26","attack"] call BIS_fnc_taskSetType;</code>|= EXAMPLE2
____________________________________________________________________________________________
 
| [[Arma_3_Tasks_Overhaul|Tasks Overhaul]] |= See also


|seealso=  [[Arma 3: Task Framework]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Tasks|{{uc:taskSetType}}]]
[[Category:Functions|{{uc:taskSetType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:taskSetType}}]]

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