Jump to content

Cost of newly launched vessel


Recommended Posts

I want to know whenever a new vessel was launched and how much it cost.

Is onNewVesselCreated the correct game event to subscribe to?

Is there an easy way to get the total cost of a vessel?

Link to comment
Share on other sites

I'll anwer my own question in case anyone finds this some time.

GameEvents.OnVesselRollout(EventData<ShipConstruct> is the callback I need. And ShipConstruct.GetShipCosts(out dryCost, out fuelCost) provides the costs

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...