Made firelocks damageable & destructible (#3303)

This commit is contained in:
Peptide90
2021-02-18 12:17:38 +00:00
committed by GitHub
parent fb5c9d689e
commit 4f2add8f90
2 changed files with 20 additions and 0 deletions

View File

@@ -5,6 +5,16 @@
components:
- type: Clickable
- type: InteractionOutline
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Sprite
netsync: false
drawdepth: Mobs # They're on the same layer as mobs, perspective.

View File

@@ -11,6 +11,16 @@
node: frame1
- type: Clickable
- type: InteractionOutline
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Physics
shapes:
- !type:PhysShapeAabb