Mono:Lua:mono findMethod
Revision as of 01:31, 6 May 2018 by TheyCallMeTim13 (talk | contribs) (Created page with 'Category:Mono Category:Lua '''function''' mono_findMethod(''namespace'', ''className'', ''methodName'') ''':''' integer Returns the method Id of the given method name in…')
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