You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the code below, CC returns a value of 0 for both capacity and quantity of any resource for the target vessel. Target vessel selected has resources greater than 0.
DATA
{
type = Vessel
requiredValue = true
uniquenessCheck = CONTRACT_ACTIVE
targetVessel1 = AllVessels().Where(v => v.VesselType() == Station && v.IsOrbiting() ).SelectUnique()
title = Select Space Station that is in orbit about a orbital body
}
DATA
{
type = Double
requiredValue = true
rcap = @/targetVessel1.ResourceCapacity(MonoPropellant)
rcur = @/targetVessel1.ResourceQuantity(MonoPropellant)
rspace = @/rcap - @/rcur
rpercent = @rcur/@rcap
//
MonoAdd = Round(@/rspace * 0.80) // Increase to 80% of avaialable space
MonoNew = Round(@/rcur + @/MonoAdd) // Determine the final amount on the station after the resupply mission
title = Get current status on resource on the station and calculate amount to add to resupply
}
The text was updated successfully, but these errors were encountered:
Using the code below, CC returns a value of 0 for both capacity and quantity of any resource for the target vessel. Target vessel selected has resources greater than 0.
The text was updated successfully, but these errors were encountered: