Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //task creation example (stolen from goulash)
- _name = "tINTERNALTASKNAME";
- _desc = "LONG DESCRIPTION OF WHAT NEEDS TO HAPPEN, YOU SEE THIS IN THE TASKS MENU";
- _title = "SHORT DESCRIPTION -- NAME OF HEADER";
- _marker = "THIS IS WHAT THE PLAYER SEES ON THEIR HUD AT THE MARKER LOCATION"; //You can leave this blank
- _target = getMarkerPos "INSERT MARKER NAME HERE"; //pretty sure you can leave this blank too, if you don't want a target
- _taskParams = [true, _name, [_desc, _title, _marker], _target, "TASKSTATE"]; //CREATED, ASSIGNED, CANCELLED, FAILED, SUCCEEDED
- _taskParams call BIS_fnc_taskCreate;
- To update a task (Success, fail, cancelled);
- ["tINTERNALTASKNAME", "TASKSTATE"] call BIS_fnc_taskSetState;
- _name = "tINTERNALTASKNAME";
- _desc = "LONG DESCRIPTION OF WHAT NEEDS TO HAPPEN, YOU SEE THIS IN THE TASKS MENU";
- _title = "SHORT DESCRIPTION -- NAME OF HEADER";
- _marker = "THIS IS WHAT THE PLAYER SEES ON THEIR HUD AT THE MARKER LOCATION"; //You can leave this blank
- _taskParams = [_name,[_desc, _title, _marker]];
- _taskParams call bis_fnc_setTaskDescription;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement