Jump to content
56Curious

Zeus Ping Event Handle

Recommended Posts

Hello, I'm trying to use the Zeus ping event handle to play a different sound. Here is the code for reference:

player addEventHandler ["CuratorPinged", {
	params ["_curator", "_unit"];
	_curator playSound "ZeusPingedSpeaker";
	{hint format ["%1 Has Pinged Zeus!",_unit];} call bis_fnc_spawn;
	systemChat "Custom Ping initialized.";
}];

However it wont play. I tried replacing with a hint but even the hint doesn't fire. Perhaps I'm doing something wrong here but i've done other EHs without any problems regarding syntaxing anyways. I'm also not getting any errors in RPT or a debug test.

If it's possible, I'd also like to detect if it's fired 3 or more times it does something, but I guess this could just be an if.

 

- Curious

Share this post


Link to post
Share on other sites
Quote

Curator Event Handlers are also added with addEventHandler command. They will be executed only where curator is local (on the computer of who is in control of it). All curator event handlers are local and have a global effect.

These events must be added to the curator object/module, not the player

 

  • Like 1

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

×