If I try to call it in the VAB for example, I get
terminate called after throwing an instance of 'krpc::RPCError'
what(): Procedure not available in game scene 'Editor'
Is there a reason for this limitation? The mass of Kerbin shouldn't change depending on the vessel you load, right?