Editing
OnCellLoad - ObjectReference
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!
[[Category:Scripting]] [[Category:Papyrus]] [[Category:Events]] '''Member of:''' [[ObjectReference Script]] Event called when every object's 3d in this object's parent cell loaded and ready. At this point you should be able to animate these objects, or manipulate them in other ways without issues. This event is sent every time the cell is loaded, which may happen multiple times in a single game session. == Syntax == <syntaxhighlight lang="papyrus"> Event OnCellLoad() </syntaxhighlight> == Parameters == None. == Examples == <syntaxhighlight lang="papyrus"> Event OnCellLoad() Debug.Trace("Every object in this cell has loaded its 3d") endEvent </syntaxhighlight> == Notes == *This event will NOT fire in the first cell(s) loaded while loading from a save game. *This appears to be the only event that can be placed in a [[ReferenceAlias Script|ReferenceAlias]] script attached to a Player Alias that can be used to detect when the player loads into a new cell. However, it is not completely reliable -- see the note below: *This event will only fire when entering a cell that is not already loaded in memory. The game keeps many recently visited cells loaded in memory, so it can be unpredictable whether this event will fire. Even when traveling through a load door with a load screen, the cell arrived at may still be loaded if it was visited during this play session, and this event might not fire. *One alternative way to track every cell change the player makes is described [[Detect_Player_Cell_Change_(Without_Polling)|here]]. == See Also == *[[OnLoad - ObjectReference]] *[[OnUnload - ObjectReference]] *[[OnCellAttach - ObjectReference]] *[[OnCellDetach - ObjectReference]]
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