make vending machines destructible (#16574)

This commit is contained in:
Nemanja
2023-05-18 19:48:14 -04:00
committed by GitHub
parent e349712f70
commit 11da00778c

View File

@@ -40,6 +40,20 @@
- !type:DoActsBehavior
acts: ["Breakage"]
- !type:EjectVendorItems
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- type: ActivatableUI
key: enum.VendingMachineUiKey.Key
- type: ActivatableUIRequiresPower