Moon_chilD 200 Posted May 15, 2019 Hello, I want to have a module that when placed in a mission would add an Eventhandler to all player units even when the are JIP. I'm really not sure how'd be the best way to deal with this. While I'm sure I could come up with something for the adding of the Eventhandler part I'm most concerned about the JIP part (Only way I could think of is to a have a while loop or something along those lines but I don't know if there possibly is a more elegant way) Hope you guys can help me Many Greetings Moony Share this post Link to post Share on other sites
Larrow 2800 Posted May 16, 2019 isGlobal = 2 Modules function is executed on all machines and JIP. see module framework documentation. Or isGlobal = 0 (server only) then apply event to all currently connected players and set up a playerConnected MEH to add it to JIP. Suppose it all depends on how and where you want to handle it. Share this post Link to post Share on other sites
pierremgi 4739 Posted May 18, 2019 Frankly, I never used the isGlobal = 2... Just 0 for server modules , 1 for players (they are all running the mission.sqm so the module, right?, even when JIP). Tested several times with JIP on dedi server... So, I don't understand in what case I'd use the isGlobal = 2 rather than 1. That remains a mystery for me. Share this post Link to post Share on other sites