add entity library
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user