Certain actions are associated with specific functions (like function call spawners, or event spawners) This retrieves the function from the wrapped action if it can (not all actions have an associated function).