Jump to content
Sign in to follow this  
Falloutperson416

How to make artillery support conditional?

Recommended Posts

So I've got some artillery set up that can be called via supports, and it works fine, but how can I make the ability to call the support disabled until a certain task has completed> Thanks in advance.

Share this post


Link to post
Share on other sites

Connect the support module to a trigger using the synchronise function and put this in the condition field of the trigger:

!(isNil "CanIhazArtillery");

Then, put this in the on act field of the task you talked about:

if (isNil "CanIhazArtillery") then { CanIhazArtillery = true; publicVariable"CanIhazArtillery"; };

Share this post


Link to post
Share on other sites

Tasks don't have on Act fields. Where else can i put that last bit of code?

---------- Post added at 20:11 ---------- Previous post was at 20:04 ----------

Nevermind, I've found another way. I desynced the request module and the player, and a trigger has the code

 unit synchronizeObjectsAdd [object] 

and this works well. So, unit is the player name, object is the module name.

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  

×