Jump to content

onClientColShapeLeave Misfire?


GhostXoP

Recommended Posts

I have two sets of code that are client side, one sets an event handler for onClientColshapeLeave for when someone enters a colshape.

When they leave, the onClientColshapeLeave Handler uses removeEventHandler for itself (it removes itself from the event system)

For some reason, when i leave, and walk back in, debugscript registers an error saying that onClientColshapeLeave is already handled by the same function, when this can't be possible because when i leave, it unregisters itself, and when i walk in, it registers itself.

In a nut shell, i walk into a colshape, it registers onClientColshapeLeave for when i have left that colshape. If i leave and come back, it says its already been registered. Thats not possible if i left it (leaving it unregisters it). Is this common? This can only happen if the leave event does not trigger

The element moving into and from the colshape is a vehicle.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...