# House This file is about {ref}`TRSHouse` and the {ref}`House variable` and all of it's methods used to interact and navigate an account's POH: ```{figure} ../../images/house.png ``` For {ref}`House` to work properly you need to setup it's {ref}`HouseLoader`, which you can do either via the {ref}`House Form` or via the {ref}`HouseViewer`. - - - ## TRSHouse The core record used to handle navigating a POH. - - - ## POH.Setup() ```pascal procedure TRSHouse.Setup(); ``` Method you need to use at the start of your script after the user has already configured his house with `TScriptForm.CreateHouseBuilder()`. - - - ## House.ScaledSearch ```pascal function TRSHouse.ScaledSearch(img: TImage; samples: Integer): TPointArray; ``` Internal TRSHouse method used to get an initial TPointArray of possible positions. This is performed in a downscaled map with a downscaled minimap. This is very innacurate by itself but by ruling down most of the map in a downscaled search before doing a full sized search speed has a dramatic boost. You probably won't ever need to call this directly. - - - ## House.Position ```pascal function TRSHouse.Position(): TPoint; ``` Returns the players current position on the loaded house map. Example: ```pascal WriteLn(House.Position()); WriteLn(House.Similarity); // Check to see the match percentage if needed ``` - - - ## House.DebugPosition ```pascal function TRSHouse.DebugPosition(): TPoint; ``` Debugs the player position in the currently loaded house map. Example: ```pascal //setup your house and house.loader while True do Map.DebugPosition(); ``` - - - ## House variable Global {ref}`TRSHouse` variable.