Attach to the entity, not the model

This commit is contained in:
Ciaran Gultnieks 2014-03-09 11:59:30 +00:00
parent 637aec9bd3
commit 2d0dfaad8e

View File

@ -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