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
Properties¶
| Name | Type | Notes |
|---|---|---|
mContainerResource | H7Resource | protected |
mCustomTooltipKey | string | protected |
mExp | int | protected |
mIsChest | bool | protected |
mIsHidden | bool | protected |
mLooted | bool | protected |
mOnGainXPSound | AkEvent | protected |
mOnPickUpSound | AkEvent | protected |
mPopUpRequestSound | AkEvent | protected |
mResourceGains | array<H7ResourceQuantity> | protected |
mUseContainerMesh | bool | protected |
mUseRandom | bool |
Functions¶
| Name | Declaration |
|---|---|
AddResource | function AddResource(H7Resource Resource, int Quantity) |
ClosePopupChosen | function ClosePopupChosen() |
DestroySecure | function DestroySecure() |
GetContainerResource | function H7Resource GetContainerResource() |
GetCustomName | function string GetCustomName() |
GetExp | function int GetExp() |
GetGainXPSound | function AkEvent GetGainXPSound() |
GetGoldGain | function int GetGoldGain(H7Player looterPlayer, optional bool modified = false) |
GetModifierString | protected function string GetModifierString(H7Player looterPlayer) |
GetName | function string GetName() |
GetPickUpSound | function AkEvent GetPickUpSound() |
GetResourceAmounts | function array |
GetResourceGains | function array<H7ResourceQuantity> GetResourceGains() |
GetResources | function array<H7Resource> GetResources() |
GetTooltipData | function H7TooltipData GetTooltipData(optional bool extendedVersion) |
Hide | function Hide() |
InitAdventureObject | event InitAdventureObject() |
isChest | function bool isChest() |
IsHiddenX | native function bool IsHiddenX() |
IsLooted | function bool IsLooted() |
IsNeutral | function bool IsNeutral() |
LocalizeCustomName | function LocalizeCustomName() |
ModifyGains | native function ModifyGains() |
NotifyPickup | native function NotifyPickup() |
OnVisit | function OnVisit(out H7AdventureHero Hero) |
Pickup | function Pickup(H7AdventureHero lootingHero, optional H7StructsAndEnums.ELootType lootType = 2, optional bool doMultiplayerSynchro = false) |
PickUpGold | function PickUpGold(H7AdventureHero Hero) |
PickUpGoldChosen | function PickUpGoldChosen() |
PickUpRequested | function PickUpRequested() |
PickUpXP | function PickUpXP(H7AdventureHero Hero) |
PickUpXPChosen | function PickUpXPChosen() |
PostSerialize | event PostSerialize() |
Reveal | function Reveal() |
SetContainerResource | function SetContainerResource(H7Resource Resource) |
SetIsChest | function SetIsChest(bool isChest) |
SetUseContainerMesh | function SetUseContainerMesh(bool UseContainerMesh) |
SetXp | function SetXp(int XP) |
SpendPickupCostsOnVisit | function bool SpendPickupCostsOnVisit(H7AdventureHero visitingHero) |
UpdateProperties | native function UpdateProperties() |
UseContainerMesh | function bool UseContainerMesh() |