Rebound entity stuff

added function to get a local offset world position from a point
updated entities to automatically process next queued action without needing to call processnextaction
Added client freeze, circle, and bobupanddown for client/rebound entity manipulation
This commit is contained in:
gononono64 committed 2025-05-04 11:11:29 -05:00
1 parent 3cb9829f4f
commit 4d8b2ff203
5 files changed
+174 -11

No files matched your search

+10 -1
View File
@@ -26,6 +26,7 @@ function ServerEntity.Create(id, entityType, model, coords, rotation, meta)
ServerEntity.Add(self)
TriggerClientEvent("community_bridge:client:CreateEntity", -1, self)
Wait(1000)
return self
end
@@ -65,10 +66,18 @@ function ServerEntity.TriggerAction(entityId, actionName, endPosition, ...)
print(string.format("[ServerEntity] Attempted to trigger action '%s' on non-existent entity %s", actionName, entityId))
return
end
print(string.format("[ServerEntity] Triggering action '%s' for entity %s", actionName, entityId))
TriggerClientEvent("community_bridge:client:TriggerEntityAction", -1, entityId, actionName, endPosition, ...)
end
function ServerEntity.TriggerActions(entityId, actions, endPosition)
local entity = Entities[entityId]
if not entity then
print(string.format("[ServerEntity] Attempted to trigger actions on non-existent entity %s", entityId))
return
end
TriggerClientEvent("community_bridge:client:TriggerEntityActions", -1, entityId, actions, endPosition)
end
function ServerEntity.GetAll()
return Entities
end