Jump to content
Moon_chilD

Add Eventhandler via Module to all Player Units

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×