diff --git a/Scripts/Python/grsnNexusBookMachine.py b/Scripts/Python/grsnNexusBookMachine.py index 485280f0eb..acf31833d0 100644 --- a/Scripts/Python/grsnNexusBookMachine.py +++ b/Scripts/Python/grsnNexusBookMachine.py @@ -81,7 +81,6 @@ kElevMoving = 1 kElevUp = 2 elevatorStatus = kElevDown -serverInitDone = False class grsnNexusBookMachine(ptResponder): @@ -90,6 +89,7 @@ def __init__(self): PtDebugPrint("book machine init") self.id = 53624 self.version = 2 + self.serverInitDone = False def IAmMaster(self): return (self.sceneobject.isLocallyOwned()) @@ -106,8 +106,7 @@ def GetPlayersInChatDistance(self, minPlayers=8): return plyrList def OnServerInitComplete(self): - global serverInitDone - serverInitDone = True + self.serverInitDone = True bookPillarSpinning.run(self.key,netPropagate=False) if not PtIsSolo(): return @@ -154,7 +153,7 @@ def OnNotify(self,state,id,events): global elevatorStatus #PtDebugPrint("id ",id) - if not serverInitDone: + if not self.serverInitDone: return avatar=PtFindAvatar(events)