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 13:16, 11 January 2012 by fandomwiki>Fuzzyhed (Created page with "{| border=2 cellpadding=3 cellspacing=0 style="margin: 0 0 1em 1em; border-collapse: collapse;" |- |style="background:#000430; font-size:150%;" colspan="3"|'''Actor.dx''' |- |col...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Actor.dx
This Property represents the x 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 from side to side.
Returns
X speed as an integer.
local chosenActor = API.getPlayerActor()-- Use the modding API to get the player Actor
print(tostring(chosenActor.dx))-- Print the x velocity.