Jump to content

Recommended Posts

Hello! 
I have been working on a mission for a while now, where the players have to take a big town. To do so there are multiple goals and my plan was to provide the players with little rewards for completing certain tasks. One of the rewards was supposed to be a new artillery provider (helicopter or artillery) but i cannot make it work. The mission always starts out with the player group already having access to all the support. Is there any way of setting up a trigger or something that will cause new support units to become available? Thanks in advance!

Share this post


Link to post
Share on other sites
4 hours ago, Creeps98 said:

Is there any way of setting up a trigger or something that will cause new support units to become available?

Use the two functions BIS_fnc_addSupportLink and BIS_fnc_removeSupportLink.

 

Place down the provider module and any vehicles it needs if not virtual, and sync everything together as normal, except do not sync the provider module to the requester module. When you want to give the player access to this provider as a reward use the function as shown...

[ player, _requesterModule, _providerModule ] call BIS_fnc_addSupportLink

...then the other when you want to remove it...

[ _requesterModule, _providerModule ] BIS_fnc_removeSupportLink

 

  • Like 1

Share this post


Link to post
Share on other sites
7 hours ago, Larrow said:

Use the two functions BIS_fnc_addSupportLink and BIS_fnc_removeSupportLink.

 

Place down the provider module and any vehicles it needs if not virtual, and sync everything together as normal, except do not sync the provider module to the requester module. When you want to give the player access to this provider as a reward use the function as shown...


[ player, _requesterModule, _providerModule ] call BIS_fnc_addSupportLink

...then the other when you want to remove it...


[ _requesterModule, _providerModule ] BIS_fnc_removeSupportLink

 

 

Thanks! Works perfectly.

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

×