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
|
||||
|
||||
Reference in New Issue
Block a user