mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add entity library
This commit is contained in:
parent
eacbc1b9d0
commit
8e931d8f53
5 changed files with 63 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue