SetDestroyed - ObjectReference
Jump to navigation
Jump to search
Member of: ObjectReference Script
Sets or clears this object's destroyed flag.
Syntax[edit | edit source]
Function SetDestroyed(bool abDestroyed = true)
Parameters[edit | edit source]
- abDestroyed: Whether the object should be destroyed or not.
- Default: True
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Flag the dam as being destroyed
Dam.SetDestroyed()
; Flag the dam as not being destroyed
Dam.SetDestroyed(false)