Jump to content
EchoTwoZero

Synchronizing units spawned via script to Editor placed Module

Recommended Posts

Hopefully someone here can help answer this!

Essentially, I'm trying to do what it says in the title - I have a script that will place down random empty vehicles in set locations on mission start.

Once the vehicles have spawned, I would like to synchronize them to an editor placed module.

 

I can't seem to get it to work though...

 

I've tried :

MODULENAME synchronizeObjectsAdd [vehicle1];

as well as spawning the module through the script itself, to no avail.

 

Cheers for any help!

Share this post


Link to post
Share on other sites

Try synchronizing both ways, each to the other:

MODULENAME synchronizeObjectsAdd [vehicle1];
vehicle1 synchronizeObjectsAdd [MODULENAME];

 

Share this post


Link to post
Share on other sites

Depends what the module is. Most make a list at initialisation of what is synced to them. Once initialisation is done you can sync stuff to it as much as you like but it will never get read by the module.

Share this post


Link to post
Share on other sites
On 4/19/2020 at 10:02 AM, Larrow said:

Depends what the module is. Most make a list at initialisation of what is synced to them. Once initialisation is done you can sync stuff to it as much as you like but it will never get read by the module.

 

Thanks, Larrow. That's probably the issue here - I can get other modules to sync up through scripting, but this one seems to never work!

I'll have a rethink about how I'll get it to work!

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

×