Jump to content
Sign in to follow this  
bardosy

BIS_fnc_taskSetState parameters?

Recommended Posts

I looking for this BIS function parameters: BIS_fnc_taskSetStat

I searched it in the forum, but all result is said only type: Succeeded

But nothing more. In good old ArmA2, we could use CA\Modules\MP\data\scriptCommands\taskHint.sqf with many different type: Canceled, failed, created, current...

I need the CURRENT type for this new function BIS_fnc_taskSetStat.

This

["tsk2", "CURRENT"] call BIS_fnc_taskSetState

do nothing.

Share this post


Link to post
Share on other sites

Hi,

don't use BIS_fnc_taskSetState. It doesn't work in mp, when there are more than one player connected!

Here's how you can use some of the new task functons:

Create a task:

[

  player, // Units
  "btk_task_1", // Unique task id

  [
   "Banana is the common name for an edible fruit produced by several kinds of large herbaceous flowering plants of the genus Musa.", // Description
   "Buy some Bananas", // Actual title
   "BUY" // GUI title (waypoint marker text)
  ], 

  (getPosATL grocery_store), // Task position
  true // Set as current task??

] call BIS_fnc_taskCreate;

Change task state:

_task = ["btk_task_1", player] call BIS_fnc_taskReal;
_task setTaskState "Succeeded";

Show task hint:

["btk_task_1", "SUCCEEDED"] call BIS_fnc_taskHint;

Possible values: "CREATED", "ASSIGNED", "SUCCEEDED", "FAILED", "CANCELED"

Tested and working in mp.

+ Not tested:

"btk_task_1" call BIS_fnc_taskSetCurrent;

Share this post


Link to post
Share on other sites

Thanks for your answer and suggestion.

I tried it and it works. Unfortunately it's not simpler then before (in arma2), but not harder neither. ;)

I thought BIS_fnc_taskSetState will do everything (check the task and show the hint, but not).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×