brainslush 13 Posted August 29, 2014 I assume that the bis_fnc_mp function doesn't have any client to client functionality and always is broadcasted to the server and then distributed to the respective receiver. Does by any chance someone know what happens when the sender is also the receiver? Does it get broadcasted to the server and then back to the client or does it cause the function to get executed immediately on the sender's machine? Thanks Share this post Link to post Share on other sites
SilentSpike 84 Posted August 29, 2014 Description: Send function for remote execution (and executes locally if conditions are met) Hope that helps! :) Share this post Link to post Share on other sites
sxp2high 23 Posted August 29, 2014 (edited) Yea, it's always send to the server first, to decide. (publicVariableServer) BIS_fnc_MP_packet = [0,_params,_functionName,_target,_isPersistent,_isCall]; publicvariableserver "BIS_fnc_MP_packet"; If server is receiver, nothing is send across the network. If one specific client is receiver it's redistributed via publicVariableClient. If all clients are receiver it's redistributed via publicVariable. if (_ownerID < 0) then { //--- Everyone publicvariable "BIS_fnc_MP_packet"; } else { if (_ownerID != _serverID) then { //--- Client _ownerID publicvariableclient "BIS_fnc_MP_packet"; }; }; Edited August 29, 2014 by sxp2high Share this post Link to post Share on other sites
SilentSpike 84 Posted August 29, 2014 Oh wow...I just read the header, you're right. That's a little deceptive. //--- Local execution if !(ismultiplayer) then { ["BIS_fnc_MP_packet",BIS_fnc_MP_packet] spawn BIS_fnc_MPexec; }; I guess that's the extent of "executes locally if conditions are met". Share this post Link to post Share on other sites
austin_medic 109 Posted August 30, 2014 Oh wow...I just read the header, you're right. That's a little deceptive. //--- Local execution if !(ismultiplayer) then { ["BIS_fnc_MP_packet",BIS_fnc_MP_packet] spawn BIS_fnc_MPexec; }; I guess that's the extent of "executes locally if conditions are met". You could probably just copy the code out of the function then put it inside a script, change what you want, then use cfgFunctions to add it back into the game inside a mission. Then you'd just call what you named the function instead of BI's version. Share this post Link to post Share on other sites
brainslush 13 Posted August 30, 2014 I found the answer a bit later by my self in the function viewer and came to the same conclusion. Forgot to look it up there b/c I didn't expect bis_fnc_mp to be in there. But thanks for confirming my findings. Share this post Link to post Share on other sites