From 877ad2901c50eeb4d5e849e2977e82e2dedc32ca Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Mon, 24 Mar 2025 12:19:06 -0400 Subject: [PATCH] Add throw_item to Player --- scenes/player/player.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scenes/player/player.gd b/scenes/player/player.gd index bd9e58a..8c516b9 100644 --- a/scenes/player/player.gd +++ b/scenes/player/player.gd @@ -33,6 +33,8 @@ var is_sprinting: bool = false func _input(event: InputEvent) -> void: if event is InputEventMouseMotion: _handle_mouse_movement(event.relative) + elif event.is_action_pressed("throw_item"): # TODO: Move to state? + EntityManager.drop_block.emit(InventoryManager.quick_slot_item_id, head.global_position, -head.global_basis.z, 10.0) func _physics_process(delta: float) -> void: is_crouching = Input.is_action_pressed("crouch") or ray_cast_crouch.is_colliding()