Here is a sample code:Thanks.
Can you show an example of what the code would look like to get the class name or role.
Then you could have if role is MMSEV pilot it will show this mesh and MMSev explorer this mesh?
C++:
std:string GetAstrMesh(const UACS::AstrInfo& astrInfo)
{
std::string configFile = std::format("Vessels/{}.cfg", astrInfo.className);
FILEHANDLE hConfig = oapiOpenFile(configFile.c_str(), FILE_IN_ZEROONFAIL, CONFIG);
if (!hConfig) return {};
char buffer[256];
bool read = oapiReadItem_string(hConfig, "SuitMesh", buffer);
oapiCloseFile(hConfig, FILE_IN_ZEROONFAIL);
return read ? buffer : {};
}
Use the C++ astronaut API as detailed in the developer manual. Simply create a normal Orbiter vessel, inherit from UACS::Astronaut class, and implement the abstract methods (currently clbkSetAstrInfo and clbkGetAstrInfo).Second you have said with UACS i could have a custom vessel but still use UACS, right? How to do that.
For instance if I have a lunar bendable walkable guy but want to load him into a UACS vessel.