# Briefing (scripting commands)

- [allDiaryRecords](../../commands/allDiaryRecords.md): Returns array with all Diary Records for the given subject available to the given person. See Diary for the explanation on the available subjects and their structure.
- [allDiarySubjects](../../commands/allDiarySubjects.md): Returns array with all Diary subjects available to the given person. See Diary for the explanation on the available subjects and their structure.
- [briefingName](../../commands/briefingName.md): Returns the name of the current briefing/scenario name.
- [cancelSimpleTaskDestination](../../commands/cancelSimpleTaskDestination.md): Cancels a simple task destination.
- [createDiaryLink](../../commands/createDiaryLink.md): Creates a link to the given diary entry.
- [createDiaryRecord](../../commands/createDiaryRecord.md): Creates a Diary entry. Supported tags and their parameters:
- [createDiarySubject](../../commands/createDiarySubject.md): Creates a new subject in the Diary.
- [createSimpleTask](../../commands/createSimpleTask.md): Creates a new Task and adds it to the Diary.
- [createTask](../../commands/createTask.md): Create a new AI task (subtask of parentTask). Type is name of registered task type.
- [currentTask](../../commands/currentTask.md): Return current task of given person.
- [currentTasks](../../commands/currentTasks.md): Returns array with all uncompleted tasks for the given agent. getVariable could be used on Task to get the following special local variables from the task: - `"_this"` Team Member - the teamMember agent the task is…
- [debriefingText](../../commands/debriefingText.md): Returns debriefing text of provided end.
- [diaryRecordNull](../../commands/diaryRecordNull.md): A non-existent Diary Record. To compare non-existent objects use isNull or isEqualTo:
- [diarySubjectExists](../../commands/diarySubjectExists.md): Checks whether given subject is present in the Diary of given player.
- [disableDebriefingStats](../../commands/disableDebriefingStats.md) **[broken]**: Disable debriefing score table.
- [enableDebriefingStats](../../commands/enableDebriefingStats.md): Enable debriefing score table.
- [getDebriefingText](../../commands/getDebriefingText.md): A getter for setDebriefingText.
- [objStatus](../../commands/objStatus.md): Sets the status of an objective that was defined in briefing.html.
- [onBriefingGroup](../../commands/onBriefingGroup.md): Select a sound declared in the Description.ext of the mission to be played the first time the Group tab is selected in the briefing.
- [onBriefingNotes](../../commands/onBriefingNotes.md): Select a sound declared in the Description.ext of the mission to be played the first time the Notes tab is selected in the briefing.
- [onBriefingPlan](../../commands/onBriefingPlan.md): Select a sound declared in the Description.ext of the mission to be played the first time the Plan tab is selected in the briefing.
- [onBriefingTeamSwitch](../../commands/onBriefingTeamSwitch.md): Select a sound defined in the CfgSounds of the mission to be played the first time the TeamSwitch tab is selected in the briefing.
- [priority](../../commands/priority.md): Return the priority of the task.
- [processDiaryLink](../../commands/processDiaryLink.md): Opens the Diary screen on the subject/record specified by link. To get a valid link format, use createDiaryLink.
- [registeredTasks](../../commands/registeredTasks.md): Returns array with all registered task types for the given agent. The values are the names set in `CfgTasks` classes `name` property and are the same names used for unregisterTask.
- [registerTask](../../commands/registerTask.md): Registers a new task type. Parameters are defined in the given config class (subclass of `CfgTasks`)
- [removeDiaryRecord](../../commands/removeDiaryRecord.md): Remove a log record.
- [removeDiarySubject](../../commands/removeDiarySubject.md): Removes a page and all its subjects from the Diary.
- [removeSimpleTask](../../commands/removeSimpleTask.md): Remove a simple task from the list of simple tasks.
- [selectDiarySubject](../../commands/selectDiarySubject.md): Selects a subject page in the diary. The subject page is selected but the command does not open the map by default, which could be opened with openMap if necessary.
- [sendTask](../../commands/sendTask.md): Create a new AI task (subtask of parentTask). Type is name of registered task type.
- [sendTaskResult](../../commands/sendTaskResult.md): Send a result of the task to the task sender.
- [setCurrentTask](../../commands/setCurrentTask.md): Set the task as a current task of the person.
- [setDebriefingText](../../commands/setDebriefingText.md): Sets debriefing title, text, subtitle, picture and background for a mission ending.
- [setDiaryRecordText](../../commands/setDiaryRecordText.md): Set text of a log record.
- [setDiarySubjectPicture](../../commands/setDiarySubjectPicture.md): Sets a picture to be displayed on the right of the Diary subject. The picture can also be set during custom Diary subject creation, but this command also allows to change icon for the fixed subjects, like "Tasks",…
- [setSimpleTaskAlwaysVisible](../../commands/setSimpleTaskAlwaysVisible.md): Sets task's visibility.
- [setSimpleTaskCustomData](../../commands/setSimpleTaskCustomData.md): Set custom data for the task. Tooltip will be drawn in task list on the right side. Description will be drawn in task description panel on the bottom.
- [setSimpleTaskDescription](../../commands/setSimpleTaskDescription.md): Attach descriptions to the simple task.
- [setSimpleTaskDestination](../../commands/setSimpleTaskDestination.md): Attach a destination to the simple task. Overrides setSimpleTaskTarget
- [setSimpleTaskTarget](../../commands/setSimpleTaskTarget.md): Attach a target to the simple task. Overrides setSimpleTaskDestination.
- [setSimpleTaskType](../../commands/setSimpleTaskType.md): Attach type to the simple task. See Default Task Types.
- [setTaskMarkerOffset](../../commands/setTaskMarkerOffset.md): Sets the task marker position in model space.
- [setTaskResult](../../commands/setTaskResult.md): Set a result of the task.
- [setTaskState](../../commands/setTaskState.md): Set the state of a given task.
- [simpleTasks](../../commands/simpleTasks.md): Return all simple tasks assigned to given unit.
- [taskAlwaysVisible](../../commands/taskAlwaysVisible.md): Returns true if the task is flagged to be always visible or false if not.
- [taskChildren](../../commands/taskChildren.md): Return the child tasks of the specified task.
- [taskCompleted](../../commands/taskCompleted.md): Return if task is completed. (state Succeeded, Failed or Canceled)
- [taskCustomData](../../commands/taskCustomData.md): Returns custom data attached to the local task or an empty array if there are no custom data attached.
- [taskDescription](../../commands/taskDescription.md): Returns the sub-parts of the task description.
- [taskDestination](../../commands/taskDestination.md): Returns the position of the task (as specified by destination parameter in config).
- [taskHint](../../commands/taskHint.md): Shows info about new, changed or failed task. The text can contain several lines. `\n` is used to set a line return.
- [taskMarkerOffset](../../commands/taskMarkerOffset.md): Returns model space position for the task marker
- [taskName](../../commands/taskName.md): Returns the name of the given task.
- [taskNull](../../commands/taskNull.md): A non-existing Task. To compare non-existent tasks use isNull or isEqualTo:
- [taskParent](../../commands/taskParent.md): Returns the parent task of the specified task.
- [taskResult](../../commands/taskResult.md): Send a result of the task to the task sender.
- [taskState](../../commands/taskState.md): Returns the current state of a task.
- [taskType](../../commands/taskType.md): Returns the type of the given task. A new task returns "Default" for the type.
- [type](../../commands/type.md): Returns a string of a Location's class name or Task's name (same as taskName).
- [unregisterTask](../../commands/unregisterTask.md): Unregisters a task type from given agent. The task type is the name given in `CfgTasks` classes in `name` property. Also available from registeredTasks array.
