SetDestroyed

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

SetDestroyed takes an int parameter. A 1 parameter marks the ref as destroyed, a 0 parameter clears the destroyed flag on the ref.

Syntax

[help]
ref.SetDestroyed destroyedFlag:int

Example

SetDestroyed 1 

Notes

  • This can be used on any door or activator to indicate that it is non-functional. Destroyed doors/activators will no longer give rollover text and cannot be activated.
  • This should not be used on temporary references as the flag appears to not be cleared if the formid is reused.
  • Using this function on actors is not recommended, use a script instead to make activating them do nothing.
  • Do not use this function on spawn markers, it will create various bugs including immunity to explosives.

See Also