Task: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page refresh)
Line 1: Line 1:
A '''task''' is the [[:Category:Data Types|variable type]] that can contain a task (formerly known as "objective").
{| class="wikitable" style="float: right; margin: 0 0 1em 1.5em"
|+ Possible values
! Task Type !! Task Icon ([[taskHint]])
|-
| "Succeeded" || "taskDone"
|-
| "Failed" || "taskFailed"
|-
| "Canceled" || "taskFailed"
|-
| "Created" || "taskNew"
|-
| "Current" || "taskCurrent"
|}
A [[Task]] is the [[:Category:Data Types|variable type]] that can contain a task (formerly known as "objective"). A null task is of [[taskNull]] value.


_task = player createsimpletask ["obj0"];
* For {{arma3}} tasks, see [[Arma 3 Task Framework]] and its [[Arma 3 Task Framework Tutorial|Tutorial]].
_task setsimpletaskdescription ["Remove enemy", "Clear enemy", "Danger"];
* For {{arma2}} tasks, see [[Arma 2:Task Tutorial]]
_task setsimpletaskdestination [6132.75, 7754.75];
_task settaskstate "Created";
[nil, nil, _task, "created"] execvm "\ca\modules\mp\data\scriptcommands\taskhint.sqf";


== Description ==


Task state value may be one of:
== See Also ==
* "Succeeded"  >> "taskDone"
* "Failed"      >> "taskFailed"
* "Canceled"    >> "taskFailed"
* "Created"    >> "taskNew"
* "Current"    >> "taskCurrent"


* [[:Category:Briefing|Briefing]]


<hr>
See also: [[Tasks]], [[briefing]]


[[Category: Data Types]]
[[Category: Data Types]]

Revision as of 21:04, 6 May 2020

Possible values
Task Type Task Icon (taskHint)
"Succeeded" "taskDone"
"Failed" "taskFailed"
"Canceled" "taskFailed"
"Created" "taskNew"
"Current" "taskCurrent"

A Task is the variable type that can contain a task (formerly known as "objective"). A null task is of taskNull value.


See Also