Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

Locked variables that use suffixes of elements do not update these elemets #164

Open jbru opened 10 years ago

jbru commented 10 years ago

If you lock a variable to an expression containing an element with a suffix, that element including the suffixes will always stay at the same value as it was when the variable was locked first.

For example the code

lock pro to prograde.

will always update when printing the value with print pro., while the code

lock pro to prograde:pitch.

will always show the same value when printing it;

lock v to velocity:orbit:mag / verticalspeed.

will only update v with the vertical speed, not the orbital speed.

While i was yet unable to find the reason why it doesn't update these, i found out that this only happens while using suffixes.