Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.91 KB | None | 0 0
  1. _unit = _this select 0;
  2. _id = _this select 1;
  3. _name = _this select 2;
  4.  
  5. _taskID = ((_this select 3) select 0);
  6. _taskTitle = ((_this select 3) select 1);
  7. _taskDescription = ((_this select 3) select 2);
  8. _taskMarker = ((_this select 3) select 3);
  9.  
  10.     _id = ["Add_TaskEvent", {
  11.  
  12.         systemChat format ["%1",_this];
  13.  
  14.         [west,
  15.         [format["%1",_this select 0]],
  16.         [format["%1",_this select 1],
  17.         format["%1",_this select 2],
  18.         format["%1",_this select 3]],
  19.         objNull, 1, 3, true] call   BIS_fnc_taskCreate;
  20.  
  21.     }] call CBA_fnc_addEventHandler;
  22.  
  23.  
  24. SystemChat format["%1 %2 %3 %4",_taskID,_taskTitle,_taskDescription,_taskMarker];
  25.  
  26. _Action = [_id,_name,"",{ ["Add_TaskEvent", [format["%1",_taskID],format["%1",_taskTitle],format["%1",_taskDescription],format["%1",_taskMarker]]] call CBA_fnc_globalEventJIP; },{true}] call ace_interact_menu_fnc_createAction;
  27. [_unit, 0, [], _Action] call ace_interact_menu_fnc_addActionToObject;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement