pickup geluidje voor flashlight en sleutel

This commit is contained in:
2023-02-08 21:27:02 +01:00
parent 83aaf9ca4e
commit 1673d8e210
4 changed files with 7 additions and 1 deletions
+1
View File
@@ -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