+ ]]--
+
+ if clicker:get_wielded_item():get_name() ~= "train:wrench" then
+ if self.is_engine then
+ print("jump on in")
+ clicker:set_attach(self.object, "", data.body_pos, data.body_rotation)
+ clicker:set_eye_offset(data.eye_offset,{x=0,y=0,z=0})
+ player_is_attached(clicker,true)
+ set_player_animation(clicker,"stand",0)
+ local rotation = self.object:get_rotation()
+ clicker:set_look_vertical(0)
+ clicker:set_look_horizontal(rotation.y)
+ self.object:set_velocity(vector.multiply(self.dir,self.max_speed))
+ self.driver = clicker
+ return
+ end