Background for Starfield
Member of the ObjectReference script
eventOnWorkshopMode(boolaStart)

Description

Wiki Description

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

Documentation Comment

Event received when the player enters or leaves Workshop Mode


Parameters

  1. boolaStart

    CK Wiki Description

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


Examples

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

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnWorkshopMode(bool aStart)
    Debug.trace("Event received - OnWorkshopMode: aStart = " + aStart)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.