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

Usually the way that I do this easily just inside the editor, no scripts, is set up an 'Object Modifier' module - Hide / Show. I put the support call in as usual then hide the support call module (the support requester), by synching a 'hide' module to it. Then I sync a 'Show' module to it as well, and sync the 'Show' part to a trigger with the condition you wanted in it. You can then also synch that same trigger to your task completed module, so when the task is completed the support call shows. Hopefully that makes sense!

Share this post


Link to post
Share on other sites

Doesn't work unfortunately, I'm still able to call support even before the triggers conditions are met. Simply syncing a hide module alone to the support request module has no effect.

Edited by Falloutperson416

Share this post


Link to post
Share on other sites

Hmm ok, I'll have to test that to clarify but I'm at work at the moment - I'm guessing you've tried linking the support requester module directly to your trigger yeah?

Share this post


Link to post
Share on other sites
Yes I have, the artillery is still accessible at mission start.

Make sure you name the support requester module, leave the support requester module and your player unlinked in the editor, and in the trigger's onAct box put:

Code:

supportname synchronizeObjectsAdd [playername];

Share this post


Link to post
Share on other sites

As alky_lee says above but instead of just syncing the unit and modules one way use the below to make sure every thing is synced up properly..

[uNIT, REQUESTER, PROVIDER] call BIS_fnc_addSupportLink 

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  

×