Question Base MFD

CaptnDave

New member
Joined
Feb 11, 2009
Messages
28
Reaction score
1
Points
0
Location
Saskatchewan
Hi! I'm just starting into the world of Orbiter Adding-on. What I am thinking of making for my first MFD is something that will add one of DanSteph's Prelude II ships at a set location once your ship comes within a certain range and then removes it to save processor power later. I've looked around a lot, but I can't find any commands for checking distance from a certain point and how to add/remove ships. Does anyone know of where I could find those or where any great tutorials or command lists are?
 
You've looked in the OrbiterSDK\doc\API_Reference.pdf? Try oapiGetRelativePos or use the MFD's vessel interface pointer to do v->GetRelativePos.
 
But can that handle references to bases that are just the base, with no vessels on them yet? If so, how do I get the ID for a base?
 
But can that handle references to bases that are just the base, with no vessels on them yet? If so, how do I get the ID for a base?
Yes, Attitude MFD uses it quite successfully. To get the base handles, use oapiGetBaseCount/oapiGetBaseByIndex/oapiGetBaseByName.
 
What I am thinking of making for my first MFD is something that will add one of DanSteph's Prelude II ships at a set location once your ship comes within a certain range and then removes it to save processor power later.
It shouldn't ba an MFD. How do you think, can something like that be on the real craft?..
 
It shouldn't ba an MFD. How do you think, can something like that be on the real craft?..

Touché! Since I'm new, I kinda figured it would have to be. I see now that it could simply be a module though. Once I'm done learning how to make dll vessels, I'll resume work on making this.

(In either case, it wouldn't be a tool on a craft, it would rather be a tool in general to keep realism high and processor tax low)
 
Back
Top