pickup geluidje voor flashlight en sleutel
This commit is contained in:
@@ -56,6 +56,7 @@ func _on_flash_light_input_event(_camera, event, _position, _normal, _shape_idx)
|
||||
if event is InputEventMouseButton and event.is_action_pressed("interact"):
|
||||
$Pivot/Camera/FlashLight.visible = true
|
||||
has_flashlight = true
|
||||
$Pickup.playing = true
|
||||
$".."/Gui.message("You can toggle the flashlight with right-mouse", "Flashlight")
|
||||
if flashlight:
|
||||
flashlight.visible = false
|
||||
|
||||
@@ -19,3 +19,4 @@ func _on_sleutel_input_event(_camera, event, _position, _normal, _shape_idx):
|
||||
if event is InputEventMouseButton and event.is_action_pressed("interact"):
|
||||
$Kast/Drawer/Sleutel.visible = false
|
||||
get_node("../Player").has_key = true
|
||||
get_node("../Player/Pickup").playing = true
|
||||
|
||||
Reference in New Issue
Block a user