OnWorkshopMode - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Event received when the player enters or leaves Workshop mode. The event is sent to the Workshop reference.

Syntax[edit | edit source]

Event OnWorkshopMode(bool aStart)

Parameters[edit | edit source]

  • aStart: true when the player starts Workshop mode, false when the player leaves it.

Examples[edit | edit source]

Event OnWorkshopMode(bool aStart)
  if ( aStart )
    Debug.Trace("Workshop Mode Started")
  else
    Debug.Trace("Workshop Mode Ended")
  endif
EndEvent

See Also[edit | edit source]