Summary
Applying a Player Movement Settings device with Energy Cost on Sprinting set to 0 while a player is already sprinting does not immediately stop energy consumption. The player must release sprint and start sprinting again before the zero-cost setting takes effect.
My setup:
A Verse device detects when the player equips their harvesting tool using Scene Graph inventory APIs. It calls player_movement_settings_device.AddTo(Player) when the harvesting tool is equipped and RemoveFrom(Player) when switching away.
Please select what you are reporting on:
Creative
What Type of Bug are you experiencing?
Devices
Steps to Reproduce
1 Start sprinting while holding a weapon.
2 Switch to the harvesting tool while continuing to sprint.
3 Observe the sprint energy bar.
4 Release sprint, then start sprinting again.
Expected Result
Sprint energy consumption stops as soon as the zero-cost movement settings are applied, without requiring the player to restart sprinting.
Observed Result
Energy continues draining during the existing sprint. After stopping and restarting sprint, energy no longer drains.
Platform(s)
PC
Island Code
1343-0472-0019