lua/wrappers/game/lua_game.cpp
/**
	 * Moves a game object from their current map to a new map at a given position.
	 *
	 * @param am.game_object game_object The game object to move.
	 * @param string map_name The name of the map to move to.
	 * @param number position_x The x position to move the game object to.
	 * @param number position_y The y position to move the game object to.
	 * @param boolean [true] set_as_current When true, the new map will become the current map and the camera will
	 *  focus on the given game object.
	 * @returns am.game This
	 */
Moves a game object from their current map to a new map at a given position.
@param am.game_object game_object The game object to move.
@param string map_name The name of the map to move to.
@param number position_x The x position to move the game object to.
@param number position_y The y position to move the game object to.
@param boolean [true] set_as_current When true, the new map will become the current map and the camera will
focus on the given game object.
Moves a game object from their current map to a new map at a given position . @param am . game_object game_object The game object to move . @param string map_name The name of the map to move to . @param number position_x The x position to move the game object to . @param number position_y The y position to move the game object to . @param boolean [ true ] set_as_current When true the new map will become the current map and the camera will focus on the given game object .
int Game_move_object_to_map(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			if (moveGameObject(lua, game, false))
			{
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "move_game_object_to_map", 2, "am.game_object game_object, string map_name, number x, number y, boolean [true] set_as_current", "am.game_object game_object, map map, number x, number y, boolean set_as_current [true]");
		}
		return LuaState::expectedContext(lua, "move_game_object_to_map", "am.game");
	}
int Game_move_object_to_map ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { if ( moveGameObject ( lua , game , false ) ) { lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Moves a game object from their current map to a new map at a given position.
Moves a game object from their current map to a new map at a given position .