SetDestroyed - ObjectReference

Member of: ObjectReference Script

Sets or clears this object's destroyed flag.

SyntaxEdit

Function SetDestroyed(bool abDestroyed = true)

ParametersEdit

  • abDestroyed: Whether the object should be destroyed or not.
    • Default: True

Return ValueEdit

None.

ExamplesEdit

; Flag the dam as being destroyed
Dam.SetDestroyed()


; Flag the dam as not being destroyed
Dam.SetDestroyed(false)

See AlsoEdit