Difference between revisions of "Mono:Lua:mono findMethod"
Jump to navigation
Jump to search
(Created page with 'Category:Mono Category:Lua '''function''' mono_findMethod(''namespace'', ''className'', ''methodName'') ''':''' integer Returns the method Id of the given method name in…') |
(No difference)
|
Latest revision as of 01:31, 6 May 2018
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