Mono:Lua:mono findMethod
Jump to navigation
Jump to search
function mono_findMethod(namespace, className, methodName) : integer
Returns the method Id of the given method name in the given class name in the namespace.
Function Parameters
Parameter | Type | Description |
---|---|---|
namespace | string | The namespace of the method |
className | string | The class name of the method |
methodName | string | The name of the method |
Examples
In Lua Engine form
- While attached to Cuphead.
Input:
return mono_findMethod('', 'PlayerStatsManager', 'TakeDamage')
Output:
:284818304
Input:
return mono_findMethod('Assembly-CSharp', 'PlayerStatsManager', 'TakeDamage')
Output:
:284818304