Jump to content
Sign in to follow this  
Undeceived

How to set a task state without the fancy hint showing up?

Recommended Posts

I tried

task1 setTaskState "Suceeded";

which didn't work at all.

_null = ["task1", "SUCCEEDED"] spawn BIS_fnc_taskSetState;

This worked, but it showed the blinking hint and the noise (which I don't want).

Is there a way to change the task state without any hint / notification, like in Arma 2?

Btw: task1 is the name of the task (I used the editor module). I also tried using the task ID (eg. t1), but no success.

Share this post


Link to post
Share on other sites
/*
 Parameters:
 0: STRING - Task name
 1: STRING - Task state
 2: BOOL - Show hint (default: true)
*/

_null = ["task1", "SUCCEEDED", false] spawn BIS_fnc_taskSetState;

Share this post


Link to post
Share on other sites

Damn, I didn't look at the function description. :)

Thanks a lot, Iceman!

Share this post


Link to post
Share on other sites

Just one small addition to the subject, in case the above doesn't work for anyone:

The function description is kind of misleading...

0: STRING - Task name

It won't work if the task name is used. You have to use the task ID instead.

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  

×