Task: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Arma 3 Task Framework" to "[[Arma 3: Task Framework")
 
(8 intermediate revisions by 4 users not shown)
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 a [[:Category:Data Types|Data Type]] that contains a task's details, such as location, title and description.<br>
It was introduced with {{arma2}}; before that, games used ''objectives'' defined in [[Briefing.html]]. 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 ==


The state of the task can be "CREATED", "SUCCEEDED", "FAILED" or "CANCELED".
== See Also ==
 
* [[:Category:Briefing|Briefing]]
 


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

Latest revision as of 23:28, 31 December 2020

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

A Task is a Data Type that contains a task's details, such as location, title and description.
It was introduced with Arma 2; before that, games used objectives defined in Briefing.html. A null task is of taskNull value.


See Also