Jump to content

Recommended Posts

I'm having trouble with my mission, I've been trying to activate a trigger only after 3 tasks are finished, I am currently using this ( this && ["AA"] call BIS_fnc_taskState == "SUCCEEDED" ) But I can't figure out how to add more tasks to it. I am also trying to make a task show up after all 3 objectives are finished. Hope I can get some help on this 👍

Share this post


Link to post
Share on other sites

If there's only 3 tasks that all need to be finished:

this && ["AA"] call BIS_fnc_taskState == "SUCCEEDED" && ["BB"] call BIS_fnc_taskState == "SUCCEEDED" && ["CC"] call BIS_fnc_taskState == "SUCCEEDED"

 

If there's more than 3 tasks of which minimum 3 need to be finished:

this && ({[_x] call BIS_fnc_taskState == "SUCCEEDED"} count ["AA", "BB", "CC", "DD", "EE", ...]) > 2

 

(untested)

  • Like 2

Share this post


Link to post
Share on other sites
6 minutes ago, stanhope said:

If there's only 3 tasks that all need to be finished:

this && ["AA"] call BIS_fnc_taskState == "SUCCEEDED" && ["BB"] call BIS_fnc_taskState == "SUCCEEDED" && ["CC"] call BIS_fnc_taskState == "SUCCEEDED"

 

If there's more than 3 tasks of which minimum 3 need to be finished:

this && ({[_x] call BIS_fnc_taskState == "SUCCEEDED"} count ["AA", "BB", "CC", "DD", "EE", ...]) > 2

 

(untested)

Works like a charm, Thank you so much mate 👍

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×