[Command] findNearbyBuilding
Posted: Wed Nov 10, 2021 8:16 pm
BuildingVariable.findNearbyBuilding(Type)
USE:
Find a building near to another building that is of a certain type.
Used with setCurrentLocation()
TYPE: Command, Ref
RETURNS: Building
THEME:
COMPARE: MoveTo
EXAMPLE:
USE:
Find a building near to another building that is of a certain type.
Used with setCurrentLocation()
TYPE: Command, Ref
RETURNS: Building
THEME:
COMPARE: MoveTo
EXAMPLE:
Code: Select all
Loc = findNearbyBuilding(restaurant)
moveTo(Loc)