Jump to content
Sign in to follow this  
thefinn

Can I link/unlink modules via script?

Recommended Posts

Pretty much the topic, I'm after a way to link or unlink support providers to the requester via script so I can set the conditions to make them available. Have googled heaps, but searching for this is painful as there are just so many module tutorials on basic stuff.

Being able to set the conditions in the editor itself (via gamelogic or some such?) is "ok" but not really what I'm after - altho I wouldn't mind knowing how to do that too

Thanks for any help.

Share this post


Link to post
Share on other sites

thanks so much, i searched the wiki for about an hour and didn't find those lol

for some reason I was searching for "linking" haha

Share this post


Link to post
Share on other sites
synchronizeObjectsAdd & syncronizeObjectRemove is what you're looking for.

Do not use these for support modules, although they do link the items they do not update the comms menu properly.

Use BIS_fnc_addSupportLink and BIS_fnc_removeSupportLink instead

  • Like 1

Share this post


Link to post
Share on other sites

Is it possible to CREATE the support provider/requester via script also ?

I notice there's "addeditorobject" however the wiki seems to be short of any kind of examples for it.

Nevermind this will work as is.

Edited by thefinn

Share this post


Link to post
Share on other sites

If you find you would still like to spawn the modules via script see my first coupe of post in this thread.

Share this post


Link to post
Share on other sites

Nice answer, that's almost exactly what I'm up to.

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  

×