tweaks to oil drum
This commit is contained in:
@@ -8,6 +8,7 @@ extends RigidBody3D
|
||||
@onready var leak_audio: AudioStreamPlayer3D = $leak_audio
|
||||
@onready var blast_radius_area: Area3D = $BlastRadius
|
||||
@onready var radius_shape: CollisionShape3D = $BlastRadius/CollisionShape3D
|
||||
@onready var audio_drop: AudioStreamPlayer3D = $audio_drop
|
||||
|
||||
var leak_hp = false
|
||||
var blast_amount
|
||||
@@ -86,3 +87,9 @@ func explode():
|
||||
explosionspawn.transform.basis = self.global_transform.basis
|
||||
get_tree().get_root().add_child(explosionspawn)
|
||||
queue_free()
|
||||
|
||||
func _on_body_shape_entered(body: Node) -> void:
|
||||
audio_drop.play()
|
||||
print("BODY")
|
||||
if body.get_collision_layer() == 1:
|
||||
audio_drop.play()
|
||||
|
||||
Reference in New Issue
Block a user