Skip to content

H7ResourcePile

Class in MMH7Game · MMH7Game.H7ResourcePile · native, perobjectconfig

Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7EditorMapObject › H7AdventureObject › H7VisitableSite › H7ResourcePile

Implements: H7IPickable, H7ITooltipable, H7IHideable

Subclasses: H7RandomResource, H7ResourcePileSpawnable

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

Properties

NameTypeNotes
mContainerResourceH7Resourceprotected
mCustomTooltipKeystringprotected
mExpintprotected
mIsChestboolprotected
mIsHiddenboolprotected
mLootedboolprotected
mOnGainXPSoundAkEventprotected
mOnPickUpSoundAkEventprotected
mPopUpRequestSoundAkEventprotected
mResourceGainsarray<H7ResourceQuantity>protected
mUseContainerMeshboolprotected
mUseRandombool

Functions

NameDeclaration
AddResourcefunction AddResource(H7Resource Resource, int Quantity)
ClosePopupChosenfunction ClosePopupChosen()
DestroySecurefunction DestroySecure()
GetContainerResourcefunction H7Resource GetContainerResource()
GetCustomNamefunction string GetCustomName()
GetExpfunction int GetExp()
GetGainXPSoundfunction AkEvent GetGainXPSound()
GetGoldGainfunction int GetGoldGain(H7Player looterPlayer, optional bool modified = false)
GetModifierStringprotected function string GetModifierString(H7Player looterPlayer)
GetNamefunction string GetName()
GetPickUpSoundfunction AkEvent GetPickUpSound()
GetResourceAmountsfunction array GetResourceAmounts()
GetResourceGainsfunction array<H7ResourceQuantity> GetResourceGains()
GetResourcesfunction array<H7Resource> GetResources()
GetTooltipDatafunction H7TooltipData GetTooltipData(optional bool extendedVersion)
Hidefunction Hide()
InitAdventureObjectevent InitAdventureObject()
isChestfunction bool isChest()
IsHiddenXnative function bool IsHiddenX()
IsLootedfunction bool IsLooted()
IsNeutralfunction bool IsNeutral()
LocalizeCustomNamefunction LocalizeCustomName()
ModifyGainsnative function ModifyGains()
NotifyPickupnative function NotifyPickup()
OnVisitfunction OnVisit(out H7AdventureHero Hero)
Pickupfunction Pickup(H7AdventureHero lootingHero, optional H7StructsAndEnums.ELootType lootType = 2, optional bool doMultiplayerSynchro = false)
PickUpGoldfunction PickUpGold(H7AdventureHero Hero)
PickUpGoldChosenfunction PickUpGoldChosen()
PickUpRequestedfunction PickUpRequested()
PickUpXPfunction PickUpXP(H7AdventureHero Hero)
PickUpXPChosenfunction PickUpXPChosen()
PostSerializeevent PostSerialize()
Revealfunction Reveal()
SetContainerResourcefunction SetContainerResource(H7Resource Resource)
SetIsChestfunction SetIsChest(bool isChest)
SetUseContainerMeshfunction SetUseContainerMesh(bool UseContainerMesh)
SetXpfunction SetXp(int XP)
SpendPickupCostsOnVisitfunction bool SpendPickupCostsOnVisit(H7AdventureHero visitingHero)
UpdatePropertiesnative function UpdateProperties()
UseContainerMeshfunction bool UseContainerMesh()

Default values

mIsUnblockingEntrance=false

Inherited

FromMembers
H7VisitableSiteProperties: mAbilityManager, mAdventureController, mAiBaseUtility, mAiOnIgnore, mBuffFlags, mBuffManager, mCliffMat, mClusterRef, mCustomNameInst, mEffectManager, mEntranceCell, mEntranceOffset, mEntranceSprite, mEventManager, mGlobalName, mHeroEventParam, mInitDone, mInitNameDone, mIsUnblockingEntrance, mLandscape, mLayer, mMinimapColor, mMinimapHidden, mMinimapIcon, mName, mQuestFlag, mReachabilityCheckDone, mSavedLocation, mSavedRotation, mUseCustomName, mVisitingArmy
Functions: AdaptToLandscape, AddBuffFlag, AddQuestFlag, AddSelfToMinimap, ApplyDamage, ClearQuestFlag, DataChanged, Destroyed, GetAbilityManager, GetActionID, GetAiBaseUtility, GetAiOnIgnore, GetAttack, GetBuffFlags, GetBuffManager, GetColor, GetCombatArmy, GetCurrentPosition, GetCustomName, GetEffectManager, GetEntityType, GetEntranceCell, GetEntranceOffset, GetEventManager, GetFlashMinimapPath, GetGridPosition, GetHasMinimap, GetHeightAsVector, GetHitPoints, GetID, GetLocation, GetLuckDestiny, GetMagic, GetMaximumDamage, GetMinimapColor, GetMinimapHidden, GetMinimapIcon, GetMinimumDamage, GetName, GetOriginal, GetPlayer, GetPreparedAbility, GetResistanceModifierFor, GetSchool, GetStackSize, GetVisitingArmy, GetVisitString, GetWorldEntranceNative, GUIAddListener, GUIWriteInto, InitAdventureObject, IsDefaultAttackActive, IsHidden, IsMovable, IsNeutral, IsUnblockingEntrance, LocalizeCustomName, NotifyVisit, OnTerrainChange, OnVisit, OverrideName, PostSerialize, PrepareAbility, ReorderBuffFlags, SetAiOnIgnore, SetAiUtilityValue, SetMinimapColor, SetMinimapHidden, SetName, SetVisitingArmy, SpendPickupCostsOnVisit, TriggerEvents, UnregisterEventManageable, UsePreparedAbility
H7AdventureObjectProperties: frameCount, mFloatRotationIntensity, mFloatSwayIntensity, Mid, mIsFloating, mOriginalLocation, mPassabilityType
Functions: AddQuestFlag, ClearQuestFlag, GetCellsUnderMe, GetCurrentPosition, GetName, GetQuestTargetID, InitAdventureObject, IsFloating, IsHidden, IsMovable, OnDoubleClick, OnLeftClick, OnRightClick, OnVisit, PostBeginPlay, ReferenceSelfToCells, SetFloating, UpdateFloating
H7EditorMapObjectProperties: AnimNodeSeqComp, mDynamicLightEnv, mFX, mHideMeshAndFX, mMesh, mShouldOutlineSkelMesh, mSnapToGroundType, mSnapType, mTerrainOffset
Functions: GetFX, GetMesh, GetMeshComp, SetMesh, SetShouldHideMeshAndFX, SetVisibility, ToggleVisibility
SkeletalMeshActorMAT1 properties, 13 functions
SkeletalMeshCinematicActor0 properties, 0 functions
SkeletalMeshActor15 properties, 28 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions