How do you remove EventHandler?

Find quick help here to get you started with Hollywood
Post Reply
Bugala
Posts: 1390
Joined: Sun Feb 14, 2010 7:11 pm

How do you remove EventHandler?

Post by Bugala »

There is probably command missing from Manual.

I just used InstallEventHandler() command to make keyboard support during level. But when Level is over, I want this event handler to be inactivated/removed. I assumed there would be something like RemoveEventHandler, but manual doesn't tell anything about this, and trying this didn't work either.

1. How do I remove EvenHandler?
2. Add the removal command to the manual
3. Add mention about removal command also to the InstallEventHandler, this way I don't need to go and figure out the removal command, but can read it from same place as InstallEventHandler

And to clarify a bit more. I checked the "Event Library" section of the manual for this command, but it wasn't listed there, or at least none of them seemed to be one.
Flinx
Posts: 342
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: How do you remove EventHandler?

Post by Flinx »

The fourth sentence in the InstallEventHandler() description:
"If you want to remove an event handler, set the corresponding table field to 0."
A real world example:

Code: Select all

InstallEventHandler({onreceiveudpdata = p_IPCUDPReceiveString})
InstallEventHandler({onreceiveudpdata = 0})
Bugala
Posts: 1390
Joined: Sun Feb 14, 2010 7:11 pm

Re: How do you remove EventHandler?

Post by Bugala »

Thanks!

Seems I read the manual real badly. Somehow skipped the first line several times since I went to that text three times to check if there is mention somewhere. Maybe because I was trying to find a command was the problem.
Post Reply