Difference between revisions of "OnSit - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
(Created page with 'Category:Scripting Category:Papyrus Category:Events '''Member of:''' Actor Script Event called when this actor sits on a piece of furniture. == Syntax == <sourc…')
 
imported>Enai Siaion
Line 20: Line 20:
endEvent
endEvent
</source>
</source>
== Bugs ==
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.


== See Also ==
== See Also ==
*[[Actor Script]]
*[[Actor Script]]
*[[OnGetUp - Actor]]
*[[OnGetUp - Actor]]

Revision as of 05:43, 29 March 2015

Member of: Actor Script

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

Syntax

Event OnSit(ObjectReference akFurniture)

Parameters

  • akFurniture: The furniture the actor just sat on.

Examples

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

Bugs

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.

See Also