From 258ffc45233404a92cc37fa9d7f6ca283b495181 Mon Sep 17 00:00:00 2001 From: lucastucious Date: Wed, 23 Jul 2025 15:07:31 +0200 Subject: [PATCH] currently broken --- core/scripts/entity.gd | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/scripts/entity.gd b/core/scripts/entity.gd index d69e400..4ed240f 100644 --- a/core/scripts/entity.gd +++ b/core/scripts/entity.gd @@ -1,15 +1,18 @@ @icon('uid://br8ndde8qty32') -extends Node3D +extends Node class_name Entity -## Base entity class for everything interactive. +## Base entity class for everything not static. ## ## 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: + add_to_group('entity') add_to_group('selectable-entity')