still has bugs, but almost works like the original, but has much better structure. still might have to change around a bit, but closing in to the final form.
9 lines
208 B
GDScript
9 lines
208 B
GDScript
class_name EquippableItem extends RigidBody3D
|
|
|
|
var weight: float = 10.0
|
|
|
|
func _ready() -> void:
|
|
self.add_to_group("equippable")
|
|
for x in get_children():
|
|
x.add_to_group("equippable")
|
|
collision_layer = 17
|