Jump to content
anthonyfromtheuk

complete task on support call

Recommended Posts

I have an enemy AA unit that once the player kills it, support is unlocked - CAS bombing run for the player.

Using the same trigger it also completes the task of destroying the AA and gives a new task of calling a CAS bombing run.

How do I complete the task of using support? (Key presses 0,8,1,1,2)

Thank you

Share this post


Link to post
Share on other sites

A number of ways depending on several things but the easiest is most likely.

if (player getVariable "bis_supp_used_cas_bombing" > 0) then {
   //Support called
};

Share this post


Link to post
Share on other sites

 

A number of ways depending on several things but the easiest is most likely.

if (player getVariable "bis_supp_used_cas_bombing" > 0) then {
   //Support called
};

Ok I tried this by putting (player getVariable "bis_supp_used_cas_bombing" > 0); as trigger condition to complete my task and it works perfectly. Thank you very much Larrow.

Share this post


Link to post
Share on other sites

So, super noob question to the OP: How did you link the death of the AA to unlocking the support element? (Pretty much just started making missions and can't find any tutorials on this anywhere). I am assuming I sync the...provider...to the completion trigger? Or maybe the task state? Help...

 

EDIT: Nevermind, found a solution (was searching the wrong terms): https://forums.bistudio.com/topic/155687-script-modules-that-are-updated-on-event-completion/

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

×