Jump to content
Sign in to follow this  
Cryptdik

MP EventHandler Help

Recommended Posts

Hey guys, I'm having some trouble with a certain script. I"m using an event handler to apply a SimpleShops script to units spawned by Zeus, and while this works great in single player/Online hosted games, it does not work in a server. I tried some stuff already but decided I had to ask around to figure this out. The way it's currently working, I have this code placed in the GAME MASTER module for Zeus (like I said, this is working except in a server setting):
 

this addEventHandler ['CuratorObjectPlaced',{  
  {  
    [_x] remoteExec ["HG_fnc_aiUnitSetup", 2]; [_x] execVM "randomItem.sqf";   
  } forEach crew (_this select 1); 
}]; 


I tried some things like changing addEventHandler to addMPEventHandler but it still doesn't work. I feel like the solution should be simple but I can't figure it out so far.

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  

×