diff --git a/api.lua b/api.lua index dc3d3f6..554bfff 100644 --- a/api.lua +++ b/api.lua @@ -154,7 +154,7 @@ end function object_fly(entity, dtime, speed, shoots, arrow, moving_anim, stand_anim) - if entity and not entity.driver then return end + if entity and not entity.driver:get_look_dir() then return end local ctrl = entity.driver:get_player_control() local velo = entity.object:get_velocity()