Jump to content
Sign in to follow this  
mp5gosu

Lifting Script locality in Multiplayer (Eventhandler)

Recommended Posts

Hello,

I have a bit trouble in getting a script run in multiplayer. It is a simple attach script, which will be fired from an addon eventhandler.

The addon is the UCSV.

class Eventhandlers
       {
           init = "_this execVM 'j4p_ucsv\data\scripts\init.sqf'";
           fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
           killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
       };

The Problem is, that only the one who created the server may be able to use this function, so I guess it is a locality issue.

init.sqf:

http://pastebin.com/SGtu305F

attach.sqf:

http://pastebin.com/Bfe7wqUd

detach.sqf

http://pastebin.com/DrH0XVn6

damage.sqf

http://pastebin.com/j1RZ0BVF

If anybody could help me out to fix this issue, this would be very much appreciated. I'm currently stuck pretty bad.

Also, the script is in an early state and has not been further developed until now.If you need any additional information, please let me know.

Share this post


Link to post
Share on other sites

Nevermind, reworte the Code. Adding Server Checks & force broadcasting variables fixed the issue. :)

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  

×