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.
How do you remove EventHandler?
Re: How do you remove EventHandler?
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:
"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})Re: How do you remove EventHandler?
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.
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.