[Command] findNearbyBuilding

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

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:

Code: Select all

Loc = findNearbyBuilding(restaurant)
moveTo(Loc)
Last edited by Raddeck on Mon May 09, 2022 7:18 pm, edited 1 time in total.
Reason: Example added
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply