BIS fnc taskSetState: Difference between revisions
Jump to navigation
Jump to search
m (pf) |
Lou Montana (talk | contribs) m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|") |
||
(30 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Tasks | ||
| | |arg= global | ||
|eff= global | |||
| [ | |descr= Set a task's state. {{Feature|informative| See [[Arma 3: Task Framework]] for more information.}} | ||
| | |s1= [taskName, taskState, showHint] call [[BIS_fnc_taskSetState]] | ||
|p2= taskState: [[String]] - | |p1= taskName: [[String]] | ||
|p2= taskState: [[String]] - can be: | |||
*"CREATED" | *"CREATED" | ||
*"ASSIGNED" | *"ASSIGNED" | ||
*"SUCCEEDED" | *"SUCCEEDED" | ||
*"FAILED" | *"FAILED" | ||
*"CANCELED" | *"CANCELED" | ||
|p3= showHint: [[Boolean]] - (Optional, default [[true]]) [[ | |p3= showHint: [[Boolean]] - (Optional, default [[true]]) [[true]] to show a hint | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
|x1= ["BIS_task_01","CANCELED"] | |x1= <sqf>["BIS_task_01","CANCELED"] call BIS_fnc_taskSetState;</sqf> | ||
|seealso= [[Arma 3: Task Framework]] | |||
| [[: | |||
}} | }} | ||
Revision as of 00:24, 2 February 2024
Description
Syntax
- Syntax:
- [taskName, taskState, showHint] call BIS_fnc_taskSetState
- Parameters:
- taskName: String
- taskState: String - can be:
- "CREATED"
- "ASSIGNED"
- "SUCCEEDED"
- "FAILED"
- "CANCELED"
- showHint: Boolean - (Optional, default true) true to show a hint
- Return Value:
- Boolean
Examples
- Example 1:
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