Difference between revisions of "Talk:SetScale - ObjectReference"

Jump to navigation Jump to search
imported>Migal130
imported>Migal130
Line 37: Line 37:
NOTE:  When testing GetScale(), Debug.MessageBox() is slower than ensuing processes possibly due to a lower parallel processing priority or simply because screen display commands take more time.  This means you must put delays after each GetScale() before using MessageBox() in order to display the results correctly.  You can do this with Utility.Wait().  1-5 seconds is enough delay, depending on the overall processing being performed.  These delays do not need to exist in your final code (unless the goal of your code is to display scaling results in a message box).
NOTE:  When testing GetScale(), Debug.MessageBox() is slower than ensuing processes possibly due to a lower parallel processing priority or simply because screen display commands take more time.  This means you must put delays after each GetScale() before using MessageBox() in order to display the results correctly.  You can do this with Utility.Wait().  1-5 seconds is enough delay, depending on the overall processing being performed.  These delays do not need to exist in your final code (unless the goal of your code is to display scaling results in a message box).


NOTE2:  It is possible that the crash previously described by RedwoodElf is a result of not understanding that SetScale is not cumulative and attempts were being made to reach a target scale by using SetScale on a previous SetScale result.  This would result in the target scale never been reached and an infinite loop could be achieved trying to reach it, due to Skyrim's limited floating point processing.
NOTE2:  It is possible that the crash previously described by RedwoodElf is a result of not understanding that SetScale is not cumulative and attempts were being made to reach a target scale by using SetScale on a previous SetScale result.  This would result in the target scale never being reached and an infinite loop could be achieved trying to reach it, due to Skyrim's limited floating point processing.
Anonymous user

Navigation menu