Task: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 19: Line 19:
<hr>
<hr>


See also: [[Tasks]]
See also: [[Tasks]], [[briefing]]


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

Revision as of 18:19, 3 August 2010

A task is the variable type that can contain a task (formerly known as "objective").

_task = player createsimpletask ["obj0"];
_task setsimpletaskdescription ["Remove enemy", "Clear enemy", "Danger"];
_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:

  • "Succeeded"
  • "Failed"
  • "Canceled"
  • "Created"
  • "Assigned"



See also: Tasks, briefing