SetCleared - Location

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Location Script

Flags or unflags this location as cleared.

Syntax[edit | edit source]

Function SetCleared(bool abCleared = true) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Flag the house as cleared
HouseProperty.SetCleared()


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

Notes[edit | edit source]

  • 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 Also[edit | edit source]