Jump to content
Sign in to follow this  
n_icomach

Resync Support Modukles on spawn

Recommended Posts

Hey guys currently having issues, certain units the JIP or respawn are having issues using the "Support Requester" Module. The module itself is working fine in testing but currently not so well on a dedicated server. Does anyone have any ideas on possible fixes?

Share this post


Link to post
Share on other sites

Define issue? As in it is synced to them at start but when respawned it's not synced?

Share this post


Link to post
Share on other sites
Define issue? As in it is synced to them at start but when respawned it's not synced?

Yes units seem to get desynced from the module on respawn or JIP.

Share this post


Link to post
Share on other sites
if ( !isDedicated ) then {
waitUntil {! ( isNull player ) };
player addEventhandler ["respawn", {
	theModule synchronizeObjectsAdd [ ( _this select 0 ) ]; 
}];
};

Share this post


Link to post
Share on other sites
if ( !isDedicated ) then {
waitUntil {! ( isNull player ) };
player addEventhandler ["respawn", {
	theModule synchronizeObjectsAdd [ ( _this select 0 ) ]; 
}];
};

This would go into the init.sqf and the one line labled "theModule" is what I named the module correct?

Share this post


Link to post
Share on other sites

Yes that would be your module name and that could go in your init.sqf.

Share this post


Link to post
Share on other sites
Yes that would be your module name and that could go in your init.sqf.

Thank you for the help!

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  

×