xScatta Posted March 24, 2016 Posted March 24, 2016 Hey, i have an question. When u attach event ex. onMarkerHit to marker and then if u destroy the marker - is the event removed by itself? Then if it's not and i don't removeEventHandler from it can it lag when i don't remove it from destroyed markers for a couple times? Thanks for answers. It's fine to celebrate success but it is more important to heed the lessons of failure.
Captain Cody Posted March 24, 2016 Posted March 24, 2016 I beleive you will have to remove the event.
xScatta Posted March 24, 2016 Author Posted March 24, 2016 @CodyL so the event is don't removed by itself when i destroy the element attached to it? And then if its don't removed then can it lag when i don't remove it from destroyed markers for a couple times? It's fine to celebrate success but it is more important to heed the lessons of failure.
xScatta Posted March 24, 2016 Author Posted March 24, 2016 *BUMP* It's fine to celebrate success but it is more important to heed the lessons of failure.
Captain Cody Posted March 24, 2016 Posted March 24, 2016 I'm not quite sure it will cause lag, for it only calls if the marker it was paired with was hit. So it will never really call again.
roaddog Posted March 24, 2016 Posted March 24, 2016 Yes It is removed. https://forum.multitheftauto.com/viewtopic.php?f ... 08#p722638 You gone learn today. I work my ass off, but I still can't pay tho.
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