Jump to content
Sign in to follow this  
_IGL_

Help with synchronized Objects

Recommended Posts

Hi guys! Have problem with command synchronizedObjects.

The situation is that I am trying to synchronize two objects (machines) with each other and I want to take a list of synchronized objects for one of the machines - but unfortunately the list is empty.

Attention to the question of how to take a list of synchronized machines on one of them without bots or players in the middle. Because if I synchronize a player with a car, everything works, but a car with a car, the list of synchronized objects is empty.

Share this post


Link to post
Share on other sites
53 minutes ago, _IGL_ said:

Hi guys! Have problem with command synchronizedObjects.

The situation is that I am trying to synchronize two objects (machines) with each other and I want to take a list of synchronized objects for one of the machines - but unfortunately the list is empty.

Attention to the question of how to take a list of synchronized machines on one of them without bots or players in the middle. Because if I synchronize a player with a car, everything works, but a car with a car, the list of synchronized objects is empty.

I'm not a scripting person, but from what I can gleam from the BI WIKI page for the synchronizedObjects command its ONLY intended use is for synchronising units with vehicles, and not unit to unit...

Quote

This command only returns the effective commander of a vehicle that is synchronized. You have to use the "vehicle" command to select the actual vehicle. This command only returns the synchronized objects when used on intelligent objects such as units or logic objects. All other objects returns an empty array.

But I could be wrong and if I am I'm sure someone will point that out 🙂

Share this post


Link to post
Share on other sites

Ok but... what way out of a situation when it is necessary to receive the list of synchronized objects (not players) with the car ???

Share this post


Link to post
Share on other sites

What can be implemented by one Command in fact must be implemented through a module.
The system I came up with looks like this:
A new module is created with which the vehicles are synchronized. Here in this question modules give out the list of the synchronized objects without problems. Then with the help of conditions we look for the necessary class of the vehicles to which we have to synchronize all this and attach to it an array with a list of synchronized vehicles with a module except for this machine itself.
And in fact we have a result where the user instead of simply synchronizing the vehicles with the vehicles must put the module and synchronize with it all the vehicles.
I don't understand why the appropriate command hasn't been added in how many years - it would simplify the world.

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  

×