Background for Fallout 4
Member of the Actor script
eventOnSit(ObjectReferenceakFurniture)

Description

Wiki Description

Event called when this actor sits on a piece of furniture.

Documentation Comment

Event that is triggered when this actor sits in the furniture


Caveats

CK Wiki - Notes

  • This event fires three separate times when activating Power Armor. First when inserting the Fusion Core, again when entering the Power Armor, and finally when exiting the Power Armor. The last two are to be expected, but a modder may not expect this to fire on Fusion Core insertions, thus one should check first if the power armor already contains a Fusion Core, or use another measure to handle the extra firing of this event.

Parameters

ObjectReferenceakFurniture

CK Wiki Description

The furniture the actor just sat on.


Examples

Event OnSit(ObjectReference akFurniture)
  Debug.Trace("We just sat on " + akFurniture)
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Actor

event OnSit(ObjectReference akFurniture)
    Debug.trace("Event received - OnSit: akFurniture = " + akFurniture)
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.