dagobaking Posted December 21, 2017 Share Posted December 21, 2017 I see the OnCellLoad Event. But, I'm not sure how to set it up so that it runs a function on my Quest script. On the quest script, I have: Event OnCellLoad() Debug.Notification("New Cell Loaded") endEventThis gives a compile error. Any ideas? Link to comment Share on other sites More sharing options...
shavkacagarikia Posted December 21, 2017 Share Posted December 21, 2017 Ok, so, that OnCellLoad is member of objectreference script and can't be used from script extending quest. you register for it remotely https://www.creationkit.com/fallout4/index.php?title=Remote_Papyrus_Event_Registration, or make new player alias, attach new script and use that event from there. BUT thats not reliable event for what you want, game usually holds some cells in memory, the ones you visited recently and even if you use load door, the cell you enter already can be in memory. So I wouldn't suggest to use that event. instead take a look at this workaround: https://www.creationkit.com/index.php?title=Detect_Player_Cell_Change_(Without_Polling) Link to comment Share on other sites More sharing options...
dagobaking Posted December 21, 2017 Author Share Posted December 21, 2017 Ok, so, that OnCellLoad is member of objectreference script and can't be used from script extending quest. you register for it remotely https://www.creationkit.com/fallout4/index.php?title=Remote_Papyrus_Event_Registration, or make new player alias, attach new script and use that event from there. BUT thats not reliable event for what you want, game usually holds some cells in memory, the ones you visited recently and even if you use load door, the cell you enter already can be in memory. So I wouldn't suggest to use that event. instead take a look at this workaround:https://www.creationkit.com/index.php?title=Detect_Player_Cell_Change_(Without_Polling) Thank you! That helped. I had tried RegisterForRemoteEvent. But, I was listening to the playerRef. So, thought it should be on "Actor.OnCellLoad". When I changed it to ObjectReference it worked. Good to know about not firing on loaded cells. Will test to see how it goes. Doesn't need to be precise for my use. Link to comment Share on other sites More sharing options...
Recommended Posts