Loons created with createunit must be created into an existing group. Give the waypoints to that group.
You cannot create waypoints out of thin air. However you can move existing waypoints with setwppos and make groups loop through them using switch triggers. You can fake waypoints with gamelogics, triggers and move commands.