Jump to content
Sign in to follow this  
askingmachine

addEventHandler not working dedicated?

Recommended Posts

Hi,

The problem is that I can't get AI units' eventhandlers to work... I have added this line into AIs' init:

this addEventHandler ["killed", {hint "testing testing"}];

And it seems to work fine in my own host, but when moving to dedicated, it does not work anymore. Why is that?

I need to have this working for my respawn mission. The game is operation arrowhead.

Thanks

Share this post


Link to post
Share on other sites

You can't do that. Killed event handlers is run locally only. Meaning even if you attach the eventhandler on the clients it would never run. The hint is being run only on the server because that's where the AI unit is local, and you have to hint on the clients in order for it to have effect there.

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  

×