Mono:Lua:mono class findMethod

From Cheat Engine
Revision as of 00:59, 6 May 2018 by TheyCallMeTim13 (talk | contribs) (Created page with 'Category:Mono Category:Lua '''function''' mono_class_findMethod(''classId'', ''methodName'') ''':''' integer Returns the method Id of the given method name in the given …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function mono_class_findMethod(classId, methodName) : integer

Returns the method Id of the given method name in the given class.

Function Parameters[edit]

Parameter Type Description
classId integer The class' ID
methodName string The methods name


Examples[edit]

In Lua Engine form[edit]

While attached to Cuphead.

Input:

local cId = mono_findClass('', 'PlayerStatsManager')
return mono_class_findMethod(cId, 'TakeDamage')

Output:

:284818304


See also[edit]

Related Functions[edit]