Ive only been able to create waypoints that are good for one shot. I'd like them to be on command.
Okay, this will be a lot of conjecture on my part. I leave the experimentation up to you.
This can be a very complex problem.
The only command that comes close to creating waypoints is the
move command which operates on a group. Your player will have to be in his own group. Waypoints must be enabled in the player's options for the yellow wp square to be visible. I guess what you could do is work out the approximate flight path needed to land, relative to the carrier, and store these values in an array. You then need a script to issue the move command to the correct position at the correct time, perhaps by calculating the distance between the player and a game logic placed at the wp. I'm not sure how to make a
move created wp disappear. Perhaps by issuing a
doStop to the player after he has landed?
Mandoble et al worked up an ILS for ArmA, but ArmA has a dedicated command for creating and destroying wps. Apparently the flight path info for runways on BIS islands are stored in the configs for the islands. Ask in the OFP addon board if someone can extract this data for you.