currently broken

This commit is contained in:
Lucas 2025-07-23 15:07:31 +02:00
parent 90b1737fb2
commit 258ffc4523
No known key found for this signature in database

View file

@ -1,15 +1,18 @@
@icon('uid://br8ndde8qty32') @icon('uid://br8ndde8qty32')
extends Node3D extends Node
class_name Entity class_name Entity
## Base entity class for everything interactive. ## Base entity class for everything not static.
## ##
## Should be the parent of every units, buildings, ## Should be the parent of every units, buildings,
## npc, loot, and everything that the player can interact with in 3D ## npc, loot, and everything that the player can interact with
##
## Is a node, because we want to deactivate rendering when out of camera and only simulating the world.
## Plus, only the entity is replicated in multiplayer
func _ready() -> void: func _ready() -> void:
add_to_group('entity')
add_to_group('selectable-entity') add_to_group('selectable-entity')