Task: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 10: | Line 10: | ||
Task state value may be one of: | Task state value may be one of: | ||
* "Succeeded" | * "Succeeded" >> "taskDone" | ||
* "Failed" | * "Failed" >> "taskFailed" | ||
* "Canceled" | * "Canceled" >> "taskFailed" | ||
* "Created" | * "Created" >> "taskNew" | ||
* " | * "Current" >> "taskCurrent" | ||
Revision as of 14:55, 13 June 2011
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" >> "taskDone"
- "Failed" >> "taskFailed"
- "Canceled" >> "taskFailed"
- "Created" >> "taskNew"
- "Current" >> "taskCurrent"