Difference between revisions of "Talk:OnCellDetach - ObjectReference"
imported>Rasikko (Created page with "== Attachment and Detachment == * For exteriors, cell attachment/detachment means the cells which load around the player. Default is 5x5 cells. Any cell that becomes no longer...") |
RobinHood70 (talk | contribs) m (Add header) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | ==Event Timing== | ||
Testing has revealed that this event can lag behind a new call to [[OnCellAttach - ObjectReference | OnCellAttach]]. What this means is if you're checking multiple cells with these two events, it's possible that the '''next''' run of OnCellAttach in the series will come before the running of this event. To put it simply..if you're expecting this: OnCellAttach -> OnCellDetach -> OnCellAttach..'''don't'''. It can be OnCellAttach -> OnCellAttach -> OnCellDetach. Normally this isn't an issue but it will be if you need to track the time when cells have been attached or detached and use those times in other calculations. I have been working with all the attachement based events for many months now as I had thought them to be very reliable, much to my disappointment. That being said, do use these as they are more reliable than say [[OnLoad - ObjectReference | OnLoad]], but for very complex operations where attachment order is important, these 2 events fall short. | |||
--[[User:TwilightSky|TwilightSky]] ([[User talk:TwilightSky|talk]]) 17:58, 26 September 2024 (EDT) |
Latest revision as of 13:33, 27 September 2024
Event Timing[edit source]
Testing has revealed that this event can lag behind a new call to OnCellAttach. What this means is if you're checking multiple cells with these two events, it's possible that the next run of OnCellAttach in the series will come before the running of this event. To put it simply..if you're expecting this: OnCellAttach -> OnCellDetach -> OnCellAttach..don't. It can be OnCellAttach -> OnCellAttach -> OnCellDetach. Normally this isn't an issue but it will be if you need to track the time when cells have been attached or detached and use those times in other calculations. I have been working with all the attachement based events for many months now as I had thought them to be very reliable, much to my disappointment. That being said, do use these as they are more reliable than say OnLoad, but for very complex operations where attachment order is important, these 2 events fall short. --TwilightSky (talk) 17:58, 26 September 2024 (EDT)