Difference between revisions of "OnCellAttach - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Egocarib
m
imported>Egocarib
Line 23: Line 23:
== Notes ==
== Notes ==
*This event seems to be reliably called before [[OnCellLoad - ObjectReference|OnCellLoad]].
*This event seems to be reliably called before [[OnCellLoad - ObjectReference|OnCellLoad]].
*This event will NOT fire in the first cell(s) loaded while loading from a save game.
*For notes on the meaning of attachment, see the [[Talk:OnCellAttach_-_ObjectReference|talk]] page.
*For notes on the meaning of attachment, see the [[Talk:OnCellAttach_-_ObjectReference|talk]] page.
*This event will NOT ever fire if used in a Player Alias script. The only cell attachment-related event that the Player seems to trigger is [[OnCellLoad - ObjectReference|OnCellLoad]]
*This event will NOT ever fire if used in a Player Alias script. The only cell attachment-related event that the Player seems to trigger is [[OnCellLoad - ObjectReference|OnCellLoad]]

Revision as of 11:50, 11 November 2013

Member of: ObjectReference Script

Event called when this reference's parent cell is attached.

Syntax

Event OnCellAttach()

Parameters

None.

Examples

Event OnCellAttach()
  Debug.Trace("Our parent cell has attached")
endEvent

Notes

  • This event seems to be reliably called before OnCellLoad.
  • This event will NOT fire in the first cell(s) loaded while loading from a save game.
  • For notes on the meaning of attachment, see the talk page.
  • This event will NOT ever fire if used in a Player Alias script. The only cell attachment-related event that the Player seems to trigger is OnCellLoad

See Also