Skip to content

H7InstantCommandInventoryAction

Class in MMH7Game · MMH7Game.H7InstantCommandInventoryAction

Object › H7InstantCommandBase › H7InstantCommandInventoryAction

Using it from Lua
h7.find_all("H7InstantCommandInventoryAction")            -- live instances
h7.find_class("MMH7Game.H7InstantCommandInventoryAction")   -- the class
h7.hook("MMH7Game.H7InstantCommandInventoryAction.CreateMPCommand", fn)

Properties

NameTypeNotes
mActionH7StructsAndEnums.EInventoryActionprivate
mByTradeboolprivate
mHeroH7AdventureHeroprivate
mItemH7HeroItemprivate
mOwnerH7AdventureHeroprivate
mPosXintprivate
mPosYintprivate
mTriggerEventsboolprivate
mUpdateGUIboolprivate

Functions

NameDeclaration
CreateMPCommandfunction MPInstantCommand CreateMPCommand()
Executefunction Execute()
GetPlayerfunction H7Player GetPlayer()
Initfunction Init(H7StructsAndEnums.EInventoryAction Action, H7AdventureHero Hero, H7HeroItem Item, optional int PosX = -1, optional int PosY = -1, optional bool updateGui = false, optional bool byTrade = false, optional bool TriggerEvents = false)
InitFromMPDatafunction InitFromMPData(MPInstantCommand Command)

Inherited

FromMembers
H7InstantCommandBaseFunctions: CreateMPCommand, Execute, GetPlayer, InitFromMPData, WaitForInterceptingCommands
Object13 properties, 308 functions