mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
add radial triggers
This commit is contained in:
parent
e6c3775286
commit
736e5b95b6
9 changed files with 117 additions and 44 deletions
|
|
@ -14,7 +14,6 @@ function on_hud_open()
|
|||
local pvel = {player.get_vel(pid)}
|
||||
local ppos = vec3.add({player.get_pos(pid)}, {0, 0.7, 0})
|
||||
local throw_force = vec3.mul(player.get_dir(pid), DROP_FORCE)
|
||||
|
||||
local drop = entities.spawn("base:drop", ppos, {item={
|
||||
id=itemid,
|
||||
count=1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue