# ===========================
# = Mass by Helijah 08/2025 =
# ===========================

var update_mass = func {

  var mass0 = getprop("sim/weight[0]/weight-lb");
  var mass1 = getprop("sim/weight[1]/weight-lb");
  var mass2 = getprop("sim/weight[2]/weight-lb");
  var mass3 = getprop("sim/weight[3]/weight-lb");
  var mass4 = getprop("sim/weight[4]/weight-lb");
  var mass5 = getprop("sim/weight[5]/weight-lb");

  setprop("sim/multiplay/generic/float[12]",mass0);
  setprop("sim/multiplay/generic/float[13]",mass1);
  setprop("sim/multiplay/generic/float[14]",mass2);
  setprop("sim/multiplay/generic/float[15]",mass3);
  setprop("sim/multiplay/generic/float[16]",mass4);
  setprop("sim/multiplay/generic/float[17]",mass5);

  settimer(update_mass, 0.1);
}

update_mass();
