One of the movement events, calcWalkSpeed is used when calculating the base walk speed. Nearly every other movement speed event starts with this, with the exception of calcFlySpeed.
The movement event flow is described below:
- Walking: calcWalkSpeed -> calcMoveSpeed
- Running: calcWalkSpeed -> calcRunSpeed -> calcMoveSpeed
- Swimming: calcWalkSpeed -> calcSwimSpeed -> calcMoveSpeed
- Swimming (while running): calcWalkSpeed -> calcSwimSpeed -> calcSwimRunSpeed -> calcMoveSpeed
--- @param e calcWalkSpeedEventData local function calcWalkSpeedCallback(e) end event.register(tes3.event.calcWalkSpeed, calcWalkSpeedCallback)
An event can be claimed by setting
true, or by returning
false from the callback. Claiming the event prevents any lower priority callbacks from being called.
mobile(tes3mobileActor): Read-only. The mobile actor whose speed is being calculated.
reference(tes3reference): Read-only. mobile’s related reference.
speed(number): The previous speed calculated, starting with the base engine values.
type(number): Read-only. The type of movement that was calculated. This is always 1 for this event.
Created: August 10, 2021 18:38:47