Task Framework Description
From Arma Projects
To create a task showing in a players map screen and hud overlay, a description of the task is needed. This tells the story and outlines the objectives of the task for players to follow. The task desciption has the ability to dynamically change text based on declared arguments that are processed at the time the task is created. It can also easily be configured as a hierarchical task with the declaration of a parent ID.
Configuration
class My_Task_1 {
class TaskDetails {
parent = "My_Parent_1";
title = "Secure Police HQ";
description[] = {
"<font>Ref: %1</font> | <font>Date: %2<br/>AO: %3 %4 near %5</font>"
,"<font size='16' color='#FFC600'>Brief:</font> <font>%7 forces have taken over and occupied the local district police HQ in an effort to gain weapons and vehicles.</font>"
,"<font size='16' color='#FFC600'>Action:</font> <font>%6 forces will surround and engage all hostiles at the objective.</font>"
,"<font size='16' color='#FFC600'>Enemy:</font> <font>It is highly possible that this location is the command post for %7 operations in the area.</font>"
,"<font size='16' color='#FFC600'>Note:</font> <font>There are civilians in the area that may support %8 so be on the lookout.</font>"
};
iconType = "C";
iconPosition = "positionOffset";
textArguments[] =
{"randomCode","datetime","worldRegion","worldName","nearestTown","factionBLUshort","factionOPFshort"};
};
};
| Configuration Parameters |
|---|
1 - title <string> - Supports dynamic arguments
|
| 2 - description <array/string> - Supports dynamic arguments |
| 3 - target <string/number> if missing, all sides will receive the task |
4 - (optional) iconType <string>
|
| 5 - (optional) iconPosition <array> |
6 - (optional) parent <string>
|
7 - (optional) state <string>
|
8 - (optional) textArguments <array> 0 to 1
|