2024-06-25 16:35:06 +03:00

9 lines
234 B
Lua

function on_hud_open()
input.add_callback("player.drop", function ()
local pid = hud.get_player()
local pvel = {player.get_vel(pid)}
local eid = entity.test()
entity.set_vel(eid, pvel)
end)
end