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
@@ -25,6 +25,8 @@ function Stash.OnCreate(entityData)
entityData.targets['stash'] = {
label = entityData.stash.target.label or Stash.default.target.label,
icon = entityData.stash.target.icon or Stash.default.target.icon,
description = entityData.stash.target.description,
groups = entityData.stash.target.groups,
canInteract = function(_)
local entData = Bridge.Entity.Get(entityData.id)
return not entData.stash.disable