Skip to content

GetDragonRidingSpeed

The GetDragonRidingSpeed function retrieves the current speed of the player while dragon riding. This function is useful for monitoring and managing the player's speed during dragon riding activities.

Parameters

This function does not take any parameters.

Returns

  • speed: A numeric value representing the player's speed while dragon riding.

Example Usage in Lua

Here is an example of how to use the GetDragonRidingSpeed function in Lua:

local api = ...

-- Function to print the player's speed while dragon riding
function PrintDragonRidingSpeed()
    local speed = api.GetDragonRidingSpeed()
    print("Player's dragon riding speed: " .. speed)
end

-- Call the function
PrintDragonRidingSpeed()