Are there any negative side effects to setting hooks this way?
#1
I am about to write my first plugin. After reading over the documentation, I decided to try and be creative with the syntax for setting hooks, because I felt like the "official" recommended way was going to be really difficult for me to read and follow. So I tried setting hooks this way, outside of the Initialize function and using anonymous functions for the function argument, and behold, it worksTongue

Screenshot:
[Image: DSI9Pqn.png]

One thing I noticed was that code outside of any function runs before the Initialize function is called. So I'm wondering, are there any negative side effects to connecting these events before the plugin has been technically initialized?
Reply
Thanks given by:


Messages In This Thread
Are there any negative side effects to setting hooks this way? - by dusk - 10-23-2017, 03:31 PM



Users browsing this thread: 4 Guest(s)