Ideally there should be a GetSeamlessTravelActorList function within Actor for serveractors that gives server actors the opportunity to do stuff around streaming to next level.
Where actors spawn other classes (such as filewriters) there are times when these serveractors and associated classes need to persist into streaming to next level, and need to be notified so that they can do graceful closure/shutdown.
Without this we're forced to write serveractors which need this functionality as mutators.
In this example we're setting up a chain of broadcast handlers to do chat logging and swear filtering - and need to reserve/gracefully shut down the file handles. It's had to be a mutator though runs entirely on the server and should be a serveractor:
http://piglet.titaninternet.co.uk/ut...3-v0.8beta.zip
Code:function GetSeamlessTravelActorList(bool bToEntry, out array<Actor> ActorList) { // moving to seamless travel if (bToEntry && NewHandler != none) { NewHandler.GetSeamlessTravelActorList(bToEntry, ActorList); } else{ if (NewHandler != none) NewHandler.CloseLogs(); else LogInternal("BroadcastHandler GetSeamlessTravelActorList cannot find broadcast handler:"@Self, 'TitanAdminHax'); } super.GetSeamlessTravelActorList(bToEntry, ActorList); }



Reply With Quote

Bookmarks