Improve entity spawning and target behaviors

Refactored client entity spawning to handle missing models and improved coordinate update sensitivity. Removed model assertion from server entity creation. Enhanced resource start event handling for both server and client. Updated stash and target behaviors to support additional properties and better zone handling for entities without spawned objects.
This commit is contained in:
Mr.Crowley committed 2025-09-03 08:57:39 -05:00
1 parent dff4622a94
commit 7443695254
5 files changed
+59 -36

No files matched your search

-2
View File
@@ -14,8 +14,6 @@ local Invoked = {}
-- @param meta table Optional additional data
-- @return table The created entity data
function ServerEntity.New(id, entityType, model, coords, rotation, args)
assert(entityType, "EntityType is required")
assert(model, "Model is required for entity creation")
assert(coords, "Coords are required for entity creation")
local self = args or {}
self.id = id or Ids.CreateUniqueId(Entities)