Closed Timmy-the-nobody closed 9 months ago
Thanks, fixed for next update!
Just tried with the last update, it's still broken
Now when calling SetGravityEnabled(false)
then SetGravityEnabled(true)
the gravity scale isn't reset to 1 but to 0 (instead of getting the gravity scale previously set), and GetGravityEnabled
will always return false in this scenario
Prerequisites
Your Environment
Description
When calling
char:SetGravityEnabled
, the character's gravity scale will be set to the default value1.0
Steps to reproduce the behavior
1
)char:SetGravityEnabled(false)
char:SetGravityEnabled(true)
After doing that the gravity scale is reset to the default value (1)
Expected behavior
The gravity scale set with
char:SetGravityScale
shouldn't be altered bychar:SetGravityEnabled
, or it should at least recover the value previously set once the gravity is re-enabledActual behavior
When disabling and enablig the gravity on a character, it's gravity scale will always be
1.0
even if we've set it before to be something else