Page 1 of 1

[Command] getBuildingType

Posted: Wed Nov 10, 2021 8:28 pm
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