It has been almost two years now, and the Humanoid.EvaluateStateMachine
property is still missing documentation.
I believe that this property would be quite useful to many, but I’d like to verify exactly how it functions before using it. I request documentation!
Page URL: https://create.roblox.com/docs/reference/engine/classes/Humanoid#EvaluateStateMachine
1 Like
While it isn’t explain in the documentation, they explain this property here!
Override the Humanoid
We’re also providing the ability to disable the internal physics and state machine of the Humanoid, so you can implement your own version of them, using these new physics controller instances and your own scripts.
New property:
Humanoid.EvaluateStateMachine
What does turning this off do?
- No forces - The Humanoid will not apply any forces to any of its Parts. The Humanoid will not move the character in any way.
- No sensors - The Humanoid will not run any spatial queries to detect floors, ladders, or other obstacles (such as auto-jump)
- No collision changes - The Humanoid will not alter the collision state of any of the character Parts. By default only the torso and head have CanCollide enabled.
- No state transitions or replication - The Humanoid will not automatically update the Humanoid’s state. HumanoidState can still be set via script, but it will not automatically replicate.
What doesn’t it do?
- State events - If manually setting Humanoid States, the Changed and State events will still fire, which means the Animate script will still receive them and animate the character based on its current Humanoid State.
- Appearance - HumanoidDescription, clothes, accessories ad other Humanoid rendering behavior.
- Camera and player scripts - The Humanoid is still linked to Players and camera scripts which ensures the camera will continue to follow the HumanoidRootPart.
- Player input handling - The
Humanoid.MoveDirection
property will still be updated via the Move
function and Player Scripts for input. The example scripts below demonstrate how this property can be used to simplify input handling.
1 Like