OnSit - Actor

Revision as of 10:12, 21 February 2016 by imported>Terra Nova2 (→‎Notes: Added alternative.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script

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

SyntaxEdit

Event OnSit(ObjectReference akFurniture)

ParametersEdit

  • akFurniture: The furniture the actor just sat on.

ExamplesEdit

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

NotesEdit

  • 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.

See AlsoEdit