Background for Skyrim SE
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 appears to have a bug that may cause akFurniture to be a piece of furniture you sat on previously, not the one you are currently sitting on.
  • An alternative to this event is to attach a script to a magic effect, and have the condition for it in the spell window set to IsInFurnitureState == 1.00 if you need to run some code when the Player or Actor is sitting down.

Parameters

  1. 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 Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.