Skip to content

H7InstantCommandTransferResource

Class in MMH7Game · MMH7Game.H7InstantCommandTransferResource

Object › H7InstantCommandBase › H7InstantCommandTransferResource

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

Properties

NameTypeNotes
mResourceNameGetstringprivate
mResourceNameGivestringprivate
mResourceQuantityGetintprivate
mResourceQuantityGiveintprivate
mSourcePlayerH7Playerprivate
mTargetPlayerH7Playerprivate

Functions

NameDeclaration
CreateMPCommandfunction MPInstantCommand CreateMPCommand()
Executefunction Execute()
GetPlayerfunction H7Player GetPlayer()
Initfunction Init(H7Player sourcePlayer, H7Player targetPlayer, string resourceNameGive, string resourceNameGet, int resourceQuantityGive, int resourceQuantityGet)
InitFromMPDatafunction InitFromMPData(MPInstantCommand Command)

Inherited

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