Added override switch

This commit is contained in:
derek
2024-10-14 10:14:07 -05:00
parent d19bb93791
commit 735a48b21d
7 changed files with 78 additions and 136 deletions

View File

@@ -13,10 +13,6 @@ func _ready() -> void:
else:
close()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func open():
door_open = true
anim_player.play("open")

View File

@@ -0,0 +1,13 @@
extends SwitchBasic
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
add_to_group("switch_override")
func interact():
switch()
func _on_static_body_3d_switch_hit() -> void:
if bullet_enabled:
switch()