Jump to content
cyborg111

eventhandler "respawn" probably not working correct

Recommended Posts

Hi folks,

 

the following three lines in the middle are part of a function and the function is set to {preInit = 1}.

 

//begin

 

true spawn {
waitUntil{!isNull player};

....

systemChat "I am here";  // is shown on the map at briefing screen.

player addEventHandler [ "Respawn", {systemChat "respawn"}]; // this code is completly ignored, no EH is added, no text shown on respawn???
player addEventHandler [ "Killed", {systemChat "killed"}];  // is shown when player dies.
...

};

//end


if i put the second line in debug console and press local, it works fine after respawn!!

My first question is, where is the difference between "respawn" and "killed" EH? (except the known funktionality from the wiki)
My second question is, is there a proper way to find out, if an EH was added and is not firing, or if it just was not added?


thanks a lot

Share this post


Link to post
Share on other sites

This  works... in MP, vanilla Arma of course. It takes less than 2 minutes to test it.

Your trouble comes from another script/mod but not the EH itself.

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

×