Skip to content

Loot drop

This Loot drop community component allows an object to drop loot when triggered. Attach this component to an object in the scene.

This component includes:

Property Description
Condition Determines the trigger condition of the loot drop:
  • Spawned, the loot drops when the player enters the game
  • Event, the loot drops when a specific event occurs
Event name Specifies the trigger event name for the loot drop. For example, it can be entered as registered in the AiGameEventRelay component. This field is only visible for the Condition is set to Event.
Min radius The minimal radius within which the loot drops
Max radius The maximum radius within which the loot drops
Picker Determines the eligibility is eligible for these loot drop
Repeat Determines when a dropped item or equipment can be picked up
Expire Sets the duration for dropped loot before they disappear if not collected by players
Probability Determines the method used for dropping items. It can be a percentage-based or weighted drop rate.
Item ID The unique identifier of an item or equipment to be dropped. To find it, in Studio go to My Resource>Gameplay library, locate your item or equipment, then click Edit to find the ID in the Properties window.
Count The number of copies of the item or equipment that will be dropped
Probability The drop percentage of the item or equipment. This option is available when the Probability is set to Independent. Value between 0 and 100%. Default: 50%. When dropping multiple pieces at the same time, set the percentage for each one separately. For example, set Item A to 50%, Item B to 100%, and Item C to 80%.
Weight The drop weight of the item or equipment. This option is available when the Probability is set to Weighted. Integer between 0 and 999. Default: 1. For a drop rate, divide the drop weight by the weighted sum. When dropping multiple pieces at the same time, set the drop weight for one separately. For example, set Item A to weight 1, B to weight 3, and C to weight 6.