Code: Select all
main:
level waittill spawn
dprintln "Script working"
thread init_plane
end
//----------------------------------------------------------------------------
init_plane:
//----------------------------------------------------------------------------
$plane stop
// you can use mess with these values to adjust the smoothness the plane
// will transition between the nodes
$plane maxyawrate 360
$plane maxpitchrate 360
$plane maxrollrate 150
$plane thread plane_fly $plane_path
end
//----------------------------------------------------------------------------
plane_fly local.path:
//----------------------------------------------------------------------------
self autopilot local.path
self waitmove // waits till plane has flown the path
self remove // deletes plane after it has finish the path
end