Background for Fallout 4
Member of the ObjectReference script
eventOnWorkshopNPCTransfer(LocationakNewWorkshop, KeywordakActionKW)

Description

Wiki Description

Event received when a workshop item is told to transfer to a new workshop.

Documentation Comment

Event that occurs when a workshop NPC is directed to move to another settlement


Parameters

  1. LocationakNewWorkshop

    CK Wiki Description

    The location of the new workshop

  2. KeywordakActionKW

    CK Wiki Description

    Keyword qualifying which action to take


Examples

Event OnWorkshopNPCTransfer(Location akNewWorkshop, Keyword akActionKW)
  Debug.Trace(self + " has been directed to transfer to the workshop at " + akNewWorkshop + " with the " \
    + akActionKW + " action")
EndEvent

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnWorkshopNPCTransfer(Location akNewWorkshop, Keyword akActionKW)
    Debug.trace("Event received - OnWorkshopNPCTransfer: akNewWorkshop = " + akNewWorkshop + " akActionKW = " + akActionKW)
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.