Author: Engima
Author Website:

Requirements: Arma 3

Version: 1.17

Short description: Simple way to handle tasks and keeping them synced in MP game.

Date: 2016-04-03 21:21


Comments: (0)
Rating:



 



Engima's Simple Tasks

by
Engima of Östgöta Ops


Description:
A simple way to handle mission objectives (tasks). A couple of simple commands lets you add and update tasks during mission progress. All players on network are assumed to have identical tasks. Works in SP, MP, Dedi and JIP.

Also released as CPack "Engima.SimpleTasks" for the TypeSqf Editor.


Installation:
1. Copy folder "Engima" and file "MissionTasks.sqf" to root of your mission folder.
2. Create the file "init.sqf" in your mission folder (if you don't already have it). Add the following line to the top of the init.sqf:
call compile preprocessFileLineNumbers "Engima\SimpleTasks\Init.sqf";
3. Customize the list of mission's initial tasks in the file "MissionTasks.sqf".


Usage:
Edit the file "MissionTasks.sqf" in the mission's root folder to set up initial mission tasks. Information about how to do this you can find in file "Engima\SimpleTasks\Documentation.sqf" that is included in the package.
There are a bunch of functions that can read and manipulate your tasks. You can get and set task state, description, destination and target, as well as creating new tasks and deleting existing tasks. Here are some examples.

To set task state on an existing task:
["ExampleTask", "SUCCEEDED."] call ENGTASKS_SetTaskState;
To create a new task:
["NewTask", "This is new task."] call ENGTASKS_CreateTask;
To set description on an existing task:
["NewTask", ["Short description.", "A very long description"]] call ENGTASKS_SetTaskDescription;

All functions can be called from any context, and task list / task state is updated on all machines in the network, including JIP. For a complete reference, see file "Engima\SimpleTasks\Documentation.sqf".


How to update from older version:
Manually:
1. Remove the folder Engima\SimpleTasks and replace it with the corresponding folder in the download package (do not replace file MissionTasks.sqf in root folder.)

TypeSqf:
1. Open the CPack console and run command "update Engima.SimpleTasks".


How to update from older version:
Manually:
1. Remove the folder Engima\SimpleTasks and replace it with the corresponding folder in the download package (do not replace file MissionTasks.sqf in root folder.)

TypeSqf:
1. Open the CPack console and run command "update Engima.SimpleTasks".


Changelog:
v.1.17
- Fixed: Task destination and task target didn't work.

v.1.16
- Fixed bug that caused script error if none of the initial tasks had state ASSIGNED.

v1.15
- Task set to status ASSIGNED is now automatically selected as "current task".

v1.10
- Tasks can now have long descriptions.
- New function: ENGTASKS_GetTaskFullDescription.

v1.0
- New function: DeleteTask.
- New set functions: SetTaskDescription, SetTaskDestination, SetTaskTarget.
- New get functions: GetTaskDescription, GetTaskState, GetTaskDestination, GetTaskTarget.
- Added parameter "showNotification" on all setter functions.
- Fixed: Didn't work when team switching.

v0.80
- First version


Forums Topic:
- BIS Forum




Enable javascript to be able to download from Armaholic please!



Tags: Objectives,   Tasks