diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml
index e1ece17d44..27c291591a 100644
--- a/Docs/Luadoc/Lua.xml
+++ b/Docs/Luadoc/Lua.xml
@@ -261,6 +261,9 @@
+
+
+
diff --git a/Docs/Luadoc/LuaDocumentation.xml b/Docs/Luadoc/LuaDocumentation.xml
index bc72220993..77370ffcf2 100644
--- a/Docs/Luadoc/LuaDocumentation.xml
+++ b/Docs/Luadoc/LuaDocumentation.xml
@@ -818,6 +818,15 @@ save yourself some time, copy this for undocumented things:
Returns the Actor's z position.
+
+ Returns what the Actor's x position will be when it reaches its destination tween state.
+
+
+ Returns what the Actor's y position will be when it reaches its destination tween state.
+
+
+ Returns what the Actor's z position will be when it reaches its destination tween state.
+
Returns the Actor's zoom.
@@ -3687,8 +3696,8 @@ save yourself some time, copy this for undocumented things:
ago= float, -- How long ago this input occurred, in seconds.
is_joystick= bool, -- True if the device is a joystick.
is_mouse= bool -- True if the device is a mouse.
- },
- controller= string, -- The game controller this event was mapped to. "GameController_1" or "GameController_2", or nil if the event wasn't mapped to either controller.
+ }, -- This ends the list of things inside the DeviceInput part of the table.
+ controller= string, -- The game controller this event was mapped to. "GameController_1" or "GameController_2", or nil if the event wasn't mapped to either controller.
button= string, -- The semi-raw button that was pressed. This is what the button was mapped to by the keymap settings, but without the conversions that occur when OnlyDedicatedMenuButtons is true. Will be empty if the button was not mapped.
type= string, -- The type of event. "InputEventType_FirstPress", "InputEventType_Repeat", or "InputEventType_Release".
GameButton= string, -- The cooked button that was pressed. This is button with mapping that occurs when OnlyDedicatedMenuButtons is true applied. This is nil for unmapped buttons.
diff --git a/src/Actor.cpp b/src/Actor.cpp
index ddb3ee62bb..5ab0620f28 100644
--- a/src/Actor.cpp
+++ b/src/Actor.cpp
@@ -1662,6 +1662,9 @@ public:
static int GetX( T* p, lua_State *L ) { lua_pushnumber( L, p->GetX() ); return 1; }
static int GetY( T* p, lua_State *L ) { lua_pushnumber( L, p->GetY() ); return 1; }
static int GetZ( T* p, lua_State *L ) { lua_pushnumber( L, p->GetZ() ); return 1; }
+ static int GetDestX( T* p, lua_State *L ) { lua_pushnumber( L, p->GetDestX() ); return 1; }
+ static int GetDestY( T* p, lua_State *L ) { lua_pushnumber( L, p->GetDestY() ); return 1; }
+ static int GetDestZ( T* p, lua_State *L ) { lua_pushnumber( L, p->GetDestZ() ); return 1; }
static int GetWidth( T* p, lua_State *L ) { lua_pushnumber( L, p->GetUnzoomedWidth() ); return 1; }
static int GetHeight( T* p, lua_State *L ) { lua_pushnumber( L, p->GetUnzoomedHeight() ); return 1; }
static int GetZoomedWidth( T* p, lua_State *L ) { lua_pushnumber( L, p->GetZoomedWidth() ); return 1; }
@@ -1838,6 +1841,9 @@ public:
ADD_METHOD( GetX );
ADD_METHOD( GetY );
ADD_METHOD( GetZ );
+ ADD_METHOD( GetDestX );
+ ADD_METHOD( GetDestY );
+ ADD_METHOD( GetDestZ );
ADD_METHOD( GetWidth );
ADD_METHOD( GetHeight );
ADD_METHOD( GetZoomedWidth );