A single option in a weighted_loot_pool.
Holds a selection weight and an optional limit on how many times the entry can be selected in a single call to SelectLoot.
Concrete subclasses define the loot that is returned when the entry is selected.
Verse using statement |
using { /UnrealEngine.com/LootPools } |
Members
This class has both data members and functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
WeightCalculator |
loot_weight_calculator |
Calculates how likely this entry is to be selected, relative to the other entries in the pool.
A higher weight makes this entry more likely to be selected. Defaults to a fixed weight of |
MaxSelectionCount |
?int |
The maximum number of times this entry can be selected in a single call to the owning pool's |
Functions
| Function Name | Description |
|---|---|
SelectAndDecrementCount |
Selects this entry and returns its loot, counting the selection against |
GetEntryValue |
Instantiates and returns a set of entities when this entry is selected. Override per new entry type. Fails if no loot can be produced. |