add entity library

This commit is contained in:
MihailRis
2024-06-25 16:35:06 +03:00
parent eacbc1b9d0
commit 8e931d8f53
5 changed files with 63 additions and 11 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
function on_hud_open()
input.add_callback("player.drop", function ()
entity.test()
local pid = hud.get_player()
local pvel = {player.get_vel(pid)}
local eid = entity.test()
entity.set_vel(eid, pvel)
end)
end