GhostXoP Posted January 8, 2013 Share Posted January 8, 2013 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
Castillo Posted January 8, 2013 Share Posted January 8, 2013 You mean that you add the handler when you enter to trigger a function when leave, then when leave, you remove that handler, and when you re-enter, it says it's already added? Post your script. Link to comment
GhostXoP Posted January 8, 2013 Author Share Posted January 8, 2013 I know what i did wrong, i've been using colshapes for so long, i forget there is marker events. Fixed, thanks for your time. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now