In the manual entry for method_get_self() it does not mention where you can use method_get_self() from and in what circumstances.
The example code is not very useful as it doesn't really show how it is intended to be used. Is it only for use from within the struct that contains the method variable or can it be used in an external script?
1. If I use it externally from some script code like this:
var check = method_get_self(my_struct.do_something) ;
then it returns "<undefined>"
2. If I use in from within my_struct and within the do_something function and do_something is a 'static' function then it returns pointer_null
3. If I use in from within my_struct and within the do_something function and do_something is now NOT a 'static' function then it returns the struct 'self'
4. When retrieving the struct 'self' from (3) you cannot use 'with' on it
Please sign in to leave a comment.