Mono:Lua:mono class getParent

From Cheat Engine
Revision as of 00:46, 6 May 2018 by TheyCallMeTim13 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function mono_class_getParent(classId) : integer

Returns the classId of the parent class of the given class.

Function Parameters[edit]

Parameter Type Description
classId integer The class' ID


Examples[edit]

In Lua Engine form[edit]

While attached to Cuphead.

Input:

local cId = mono_findClass('', 'PlayerStatsManager')
local pcId = mono_class_getParent(cId)
return mono_class_getName(pcId)

Output:

:AbstractPlayerComponent


See also[edit]

Related Functions[edit]