[Command] getBuildingType

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.getBuildingType()


USE:
Used with getBuilding() and isString("") for lpai files.
Can also be used inside lpscene too.


TYPE: Command, Ref
RETURNS: String
THEME: Building
COMPARE: getBuilding


EXAMPLE:

Code: Select all

If cur.isSameBuilding(wrk)
    tp = wrk.getBuildingType()
    If isOpen(tp)
        willFollow = false
        
        Random
            MainActor(sad):: "Oh <Player.Name> I'd like to, but I still have to work."
            MainActor(sad):: "Sorry, <Player.Name> I still have to work."
        EndRandom
    EndIf
EndIf
Last edited by Raddeck on Wed Jun 15, 2022 7:30 pm, edited 1 time in total.
Reason: Added 1 example - Updated
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