Added override switch
This commit is contained in:
@@ -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")
|
||||
|
||||
13
scripts/switch_override.gd
Normal file
13
scripts/switch_override.gd
Normal 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()
|
||||
Reference in New Issue
Block a user