- Joined
- Oct 30, 2009
- Messages
- 14,020
- Reaction score
- 4
- Points
- 0
I'm creating a vessel with oapiCreateVesselEx during simulation, which won't be deleted until simulation end. How to prevent saving it to scenario file on simulation end, or when oapiSaveScenario is called? Exporting empty clbkSaveState callback leaves empty entry of that vessel in scenario file.
BTW. Another thing I'd like to know is how to hide a non-focusable vessel from camera input? I tried to create a vessel with empty name, but it's still listed in Ships list for camera target, and it's still saved to scenario file (they, and multiple times, but camera targets only the first from the list, and scenario file is unusable until it's cleared from those vessels).
Are there some ways of creating vessels on runtime, other than oapiCreateVessel / oapiCreateVesselEx with created earlier vessel configuration file? Vessel class constructor needs an object handle of vessel, so I don't think it can be called explicitly.
BTW. Another thing I'd like to know is how to hide a non-focusable vessel from camera input? I tried to create a vessel with empty name, but it's still listed in Ships list for camera target, and it's still saved to scenario file (they, and multiple times, but camera targets only the first from the list, and scenario file is unusable until it's cleared from those vessels).
Are there some ways of creating vessels on runtime, other than oapiCreateVessel / oapiCreateVesselEx with created earlier vessel configuration file? Vessel class constructor needs an object handle of vessel, so I don't think it can be called explicitly.