Attach to the entity, not the model
This commit is contained in:
parent
637aec9bd3
commit
2d0dfaad8e
2
init.lua
2
init.lua
@ -73,7 +73,7 @@ function heli:on_rightclick(clicker)
|
||||
elseif not self.pilot then
|
||||
self.model:set_animation({x=0,y=10},10, 0)
|
||||
self.pilot = clicker
|
||||
clicker:set_attach(self.model, "Root", {x=0,y=0,z=-10}, {x=-90,y=0,z=-90})
|
||||
clicker:set_attach(self.object, "", {x=0,y=0,z=-10}, {x=0,y=0,z=0})
|
||||
clicker:set_look_yaw(self.object:getyaw() - math.pi / 2)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user