"Sets a new tag method to the given pair (<Tag>, <Event>) and returns the old method. If <NewMethod> is nil, then settagmethod restores the default behavior for the given event. This function cannot be used to set a tag method for the 'gc' event. (Such tag methods can only be manipulated by C code.)"
Example
Arguments
<Tag>: the tag. Note: I'm not sure what type of variable this is. -Mikail <Event>: the event. Note: I'm not sure what type of variable this is. -Mikail <NewMethod>: the new method.