SetCleared - Location

Revision as of 16:21, 30 September 2015 by imported>Cdcooley (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Location Script

Flags or unflags this location as cleared.

SyntaxEdit

Function SetCleared(bool abCleared = true) native

ParametersEdit

  • abCleared: Whether to set or clear the cleared flag.
    • Default: True

Return ValueEdit

None.

ExamplesEdit

; Flag the house as cleared
HouseProperty.SetCleared()


; Unflag the house as cleared
HouseProperty.SetCleared(false)

NotesEdit

  • SetCleared does not update the 'Dungeons Cleared' misc stat. When using SetCleared, make sure to follow it with a call to IncrementStat if appropriate.

See AlsoEdit