Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 11:07, 11 August 2025 by Koza1brada (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Actor.dy
This Property represents the y speed of an actor. Note: You must set this to the desired speed at a constant rate, otherwise it will not really set it. It should also be noted that this is more velocity than speed, as it will often teleport the player up or down. It should be also noted that the velocities seem to be inverted.
Returns
Y speed as an integer.
local chosenActor = API.getPlayerActor()-- Use the modding API to get the player Actor
print(tostring(chosenActor.dy))-- Print the x velocity.