mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add entity:get_player()
This commit is contained in:
parent
65fec4f4a9
commit
9cd3f3e4c8
5 changed files with 33 additions and 3 deletions
|
|
@ -66,6 +66,7 @@ local Entity = {__index={
|
|||
get_uid=function(self) return self.eid end,
|
||||
def_index=function(self) return entities.get_def(self.eid) end,
|
||||
def_name=function(self) return entities.def_name(entities.get_def(self.eid)) end,
|
||||
get_player=function(self) return entities.get_player(self.eid) end,
|
||||
}}
|
||||
|
||||
local entities = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue