Lootbox
Last updated
Last updated
Container that holds randomized rewards, such as weapons, power-ups, coins and more. Inherits from and can be Free or Paid. Check for more info.
loot: Array that contains all the possible loot to be instantiated. On interact, a random item will be selected.
price: Price to unlock the Lootbox. Set to 0 for it to be Free.
delayToReceiveLoot: Specifies the time interval between opening the lootbox and receiving the loot.
spawnDistance: Distance to spawn the loot from the Lootbox Position
directionDependsOnPlayerPosition: If true, the loot will be instantiated in fron of the player always. Recommended to be true.