add player.get/set_entity

This commit is contained in:
MihailRis
2024-07-09 04:27:18 +03:00
parent 9d98c40528
commit f4653878a2
4 changed files with 34 additions and 6 deletions
+2
View File
@@ -47,6 +47,8 @@ local Entity = {__index={
despawn=function(self) return entities.despawn(self.eid) end,
set_rig=function(self, s) return entities.set_rig(self.eid, s) end,
get_component=function(self, name) return self.components[name] end,
has_component=function(self, name) return self.components[name] ~= nil end,
get_uid=function(self) return self.eid end,
}}
local entities = {}