0.4.16 functions
This commit is contained in:
parent
5832a5243f
commit
5f34a53a39
4
init.lua
4
init.lua
@ -299,13 +299,13 @@ local punchy = function(player, hitter, time_from_last_punch, tool_capabilities,
|
||||
|
||||
player:set_attach(ent, "", {x = 0, y = 0, z = 0}, {x = 0, y = yaw, z = 0})
|
||||
|
||||
ent:setvelocity({
|
||||
ent:set_velocity({
|
||||
x = dir.x * vel,
|
||||
y = 0,
|
||||
z = dir.z * vel
|
||||
})
|
||||
|
||||
ent:setacceleration({
|
||||
ent:set_acceleration({
|
||||
x = dir.x * -1,
|
||||
y = 0,
|
||||
z = dir.z * -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user