Editing
ObjectReference Script
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Events == :'''[[OnActivate - ObjectReference|OnActivate]](ObjectReference ''akActionRef'')''' :*Event received when this object is activated. :'''[[OnAttachedToCell - ObjectReference|OnAttachedToCell]]()''' :*Event received when this reference moves from a detached cell to an attached one. :'''[[OnCellAttach - ObjectReference|OnCellAttach]]()''' :*Event received when this reference's parent cell attaches. :'''[[OnCellDetach - ObjectReference|OnCellDetach]]()''' :*Event received when this reference's parent cell detaches. :'''[[OnCellLoad - ObjectReference|OnCellLoad]]()''' :*Event received when everything in the cell that holds this reference has loaded. :'''[[OnClose - ObjectReference|OnClose]](ObjectReference ''akActionRef'')''' :*Event received when this object is finished closing. :'''[[OnContainerChanged - ObjectReference|OnContainerChanged]](ObjectReference ''akNewContainer'', ObjectReference ''akOldContainer'')''' :*Event received when an object moves into/out of/between containers. :'''[[OnDestructionStageChanged - ObjectReference|OnDestructionStageChanged]](Int ''aiOldStage'', Int ''aiCurrentStage'')''' :*Event received when this object's destruction stage has worsened. :'''[[OnDetachedFromCell - ObjectReference|OnDetachedFromCell]]()''' :*Event received when this object moves from an attached cell to a detached cell. :'''[[OnEquipped - ObjectReference|OnEquipped]](Actor ''akActor'')''' :*Event received when this object is equipped by an actor. :'''[[OnGrab - ObjectReference|OnGrab]]()''' :*Event received when this object is grabbed (z-keyed) by the player. :'''[[OnHit - ObjectReference|OnHit]](ObjectReference ''akAggressor'', Form ''akSource'', Projectile ''akProjectile'', Bool ''abPowerAttack'', Bool ''abSneakAttack'', Bool ''abBashAttack'', Bool ''abHitBlocked'')''' :*Event received when this object is hit with a weapon or projectile. :'''[[OnItemAdded - ObjectReference|OnItemAdded]](Form ''akBaseItem'', Int ''aiItemCount'', ObjectReference ''akItemReference'', ObjectReference ''akSourceContainer'')''' :*Event received when an item is inserted into this object's container. :'''[[OnItemRemoved - ObjectReference|OnItemRemoved]](Form ''akBaseItem'', Int ''aiItemCount'', ObjectReference ''akItemReference'', ObjectReference ''akDestContainer'')''' :*Event received when an item is removed from this object's container. :'''[[OnLoad - ObjectReference|OnLoad]]()''' :*Event received when this object's 3d is loaded and ready. :'''[[OnLockStateChanged - ObjectReference|OnLockStateChanged]]()''' :*Event received when the lock on this object changes its state. :'''[[OnMagicEffectApply - ObjectReference|OnMagicEffectApply]](ObjectReference ''akCaster'', MagicEffect ''akEffect'')''' :*Event received when a magic effect is attempting to be applied to this reference. :'''[[OnOpen - ObjectReference|OnOpen]](ObjectReference ''akActionRef'')''' :*Event received when this object is fully opened. :'''[[OnRead - ObjectReference|OnRead]]()''' :*Event received when this object is read. (Only applies to books) :'''[[OnRelease - ObjectReference|OnRelease]]()''' :*Event received when this object is released by the player (stopped z-keying). :'''[[OnReset - ObjectReference|OnReset]]()''' :*Event received when this object is reset. :'''[[OnSell - ObjectReference|OnSell]](Actor ''akSeller'')''' :*Event received when this object is sold by someone. :'''[[OnSpellCast - ObjectReference|OnSpellCast]](Form ''akSpell'')''' :*Event received when this object casts a spell. :'''[[OnTrapHit - ObjectReference|OnTrapHit]](ObjectReference ''akTarget'', Float ''afXVel'', Float ''afYVel'', Float ''afZVel'', Float ''afXPos'', Float ''afYPos'', Float ''afZPos'', Int ''aeMaterial'', Bool ''abInitialHit'', Int ''aeMotionType'')''' :*Event received when this trap object hits a target. :'''[[OnTrapHitStart - ObjectReference|OnTrapHitStart]](ObjectReference ''akTarget'', Float ''afXVel'', Float ''afYVel'', Float ''afZVel'', Float ''afXPos'', Float ''afYPos'', Float ''afZPos'', Int ''aeMaterial'', Bool ''abInitialHit'', Int ''aeMotionType'')''' :*Event received when this trap object starts colliding with a target. :'''[[OnTrapHitStop - ObjectReference|OnTrapHitStop]](ObjectReference ''akTarget'')''' :*Event received when this trap object stops colliding with a target. :'''[[OnTranslationAlmostComplete - ObjectReference|OnTranslationAlmostComplete]]()''' :*Event received when a translation request is almost complete. :'''[[OnTranslationComplete - ObjectReference|OnTranslationComplete]]()''' :*Event received when a translation request is complete. :'''[[OnTranslationFailed - ObjectReference|OnTranslationFailed]]()''' :*Event received when a translation request has failed. :'''[[OnTrigger - ObjectReference|OnTrigger]](ObjectReference ''akActionRef'')''' :*Event received when this object is triggered. :'''[[OnTriggerEnter - ObjectReference|OnTriggerEnter]](ObjectReference ''akActionRef'')''' :*Event received when this object's volume is entered. :'''[[OnTriggerLeave - ObjectReference|OnTriggerLeave]](ObjectReference ''akActionRef'')''' :*Event received when this object's volume is left. :'''[[OnUnequipped - ObjectReference|OnUnequipped]](Actor ''akActor'')''' :*Event received when this object is unequipped by an actor. :'''[[OnUnload - ObjectReference|OnUnload]]()''' :*Event received when this object's 3d has been unloaded. :'''[[OnWardHit - ObjectReference|OnWardHit]](ObjectReference ''akCaster'', Spell ''akSpell'', Int ''aiStatus'')''' :*Event called when the object reference is using a ward that is hit by a spell. [[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]] [[Category:SKSE]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values