taskDescription: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
mNo edit summary
 
Line 15: Line 15:
|gr1= Briefing
|gr1= Briefing


|descr= Returns the sub-parts of the task description. The returned Array is in format [Task description, Task title, Task waypoint description].
|descr= Returns the sub-parts of the task description.


|s1= [[taskDescription]] task
|s1= [[taskDescription]] task
Line 21: Line 21:
|p1= task: [[Task]]
|p1= task: [[Task]]


|r1= [[Array]]
|r1= [[Array]] with [description, title, waypoint]
* description: [[String]]
* title: [[String]]
* waypoint


|x1= <sqf>_taskDescArray = taskDescription _task;</sqf>
|x1= <sqf>_taskDescArray = taskDescription _task;</sqf>

Latest revision as of 11:21, 1 January 2026

Hover & click on the images for description

Description

Description:
Returns the sub-parts of the task description.
Groups:
Briefing

Syntax

Syntax:
taskDescription task
Parameters:
task: Task
Return Value:
Array with [description, title, waypoint]

Examples

Example 1:
_taskDescArray = taskDescription _task;

Additional Information

See also:
setSimpleTaskDescription createSimpleTask

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Tajin - c
Posted on Nov 14, 2014 - 19:48 (UTC)
Be careful if you want to use this to retrieve the title of a task. If the task has no description set, then "taskDescription" will only return an array of empty Strings.
Therefore always use setSimpleTaskDescription directly after creating a new task, even if you set the Description to "".