Jump to content
Sign in to follow this  
unidad2pete

synchronizeObjectsRemove doesn´t work?

Recommended Posts

synchronizeObjectsAdd: https://community.bistudio.com/wiki/synchronizeObjectsAdd

player synchronizeObjectsAdd [myrequester];

This script works fine, I have a support requester module called " myrequester ", when I call this script, I can request artillery support.

But to remove this synchronization with:

synchronizeObjectsRemove :https://community.bistudio.com/wiki/synchronizeObjectsRemove

player synchronizeObjectsRemove [myrequester];

doesn´t work, why? I don´t understand.

As always, thanks for your help

Share this post


Link to post
Share on other sites

Script command synchronizeObjectsRemove works for me, problem is probably somewhere else in your scripts.

This is my init.sqf where all script commands work as expected:

player synchronizeObjectsAdd [myrequester];
hint format ["Synchronized1: %1", synchronizedObjects player];

sleep 5;

player synchronizeObjectsRemove [myrequester];
hint format ["Synchronized2: %1", synchronizedObjects player];

Share this post


Link to post
Share on other sites

I have a support requester module called " myrequester "

myrequester is synchronized with a virtual artillery but not with player.

I add an action to player in unit init calling mortar.sqf ( player addAction ["Artillery","mortar.sqf"] )

mortar.sqf:

player synchronizeObjectsAdd [myrequester];

sleep 5;

player synchronizeObjectsRemove [myrequester];

On active action, I get message and get artillery support, but after nothing happens.

It is possible that works fine, desynchronized the object, but this does not eliminate the action player for requesting artillery. No errors are displayed

As I could do to eliminate the possibility of requesting artillery?

Furthermore, it is in multiplayer.

tested, synchronizeObjectsRemove works well, but when action was added to request artillery, not removed when the module desynchronized.

that I can I do? :(

Edited by unidad2pete

Share this post


Link to post
Share on other sites

As a quick hotfix for your particular issue, try adding this code after you desynchronize the objects:

BIS_supp_refresh = TRUE; publicVariable "BIS_supp_refresh";

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  

×