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[edit]
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[edit]
In Lua Engine form[edit]
- While attached to Cuphead.
Input:
return mono_findMethod('', 'PlayerStatsManager', 'TakeDamage')
Output:
:284818304
Input:
return mono_findMethod('Assembly-CSharp', 'PlayerStatsManager', 'TakeDamage')
Output:
:284818304