item pickup work
added extra stop before player eats the item so you can see what you've gathered
This commit is contained in:
@@ -89,6 +89,7 @@ var pickupmsg
|
||||
|
||||
@onready var weapon_spawner = $Head/Camera3D/WeaponHolder/WeaponSpawner
|
||||
@onready var pick_up_detection = $pick_up_detection
|
||||
@onready var item_holder: Node3D = $Head/ItemHolder
|
||||
|
||||
|
||||
func _ready():
|
||||
@@ -291,7 +292,8 @@ func _headbob(time) -> Vector3:
|
||||
func _on_pick_up_detection_body_entered(body):
|
||||
|
||||
if body.is_in_group("pickup"):
|
||||
body.picked_up()
|
||||
if body.pickupable:
|
||||
body.picked_up()
|
||||
|
||||
|
||||
func ladder_collide(is_climbing):
|
||||
@@ -304,6 +306,7 @@ func ladder_collide(is_climbing):
|
||||
func _on_pick_up_magnet_body_entered(body):
|
||||
if body.is_in_group("pickup") and body.is_in_group("magnet"):
|
||||
body.player_follow = self
|
||||
#body.collision_shape.disabled = true
|
||||
|
||||
func weapon_tilt(input_x, delta):
|
||||
if weapon_holder:
|
||||
|
||||
Reference in New Issue
Block a user