BIS fnc taskSetType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|arg= global|eff= global" to "|arg= global |eff= global")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
Line 11: Line 11:
|s1= [taskID,type] call [[BIS_fnc_taskSetType]]
|s1= [taskID,type] call [[BIS_fnc_taskSetType]]


|p1= taskID: [[String]] - Task ID
|p1= taskID: [[String]] - task ID


|p2= taskType: [[String]] - Task Type from [[configfile]]  >> "CfgTaskTypes"
|p2= taskType: [[String]] - task Type from [[configfile]]  >> "CfgTaskTypes"


|r1= [[String]] - Task ID.
|r1= [[String]] - task ID.


|x1= <sqf>["BIS_Task_01","attack"] call BIS_fnc_taskSetType;</sqf>
|x1= <sqf>["BIS_Task_01","attack"] call BIS_fnc_taskSetType;</sqf>

Revision as of 16:51, 8 November 2023

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