I've placed a protectron in a pod in my mod and modeled it off the generic factory protectron in The Pitt. I've successfully linked it to a terminal so when I select the proper line in the terminal, the pod opens and the protectron activates. However, I can't get the protectron to start its patrol. It's a simple patrol made with three XMarkerHeadings. Each one of the XMarkerHeadings has a linked ref to the next one in line and the last one is linked back to the first one. I created a patrol package with the starting point at the first heading and containing all three headings and I've added this package to the protectron with the condition GetAv Variable01 >= 3. The relevant scripts are as follows:
Protectron script:
begin onLoadif getav variable01 == 0 ; I'm currently "off"; make me unconscious so I don't play soundssetUnconscious 1endifendbegin OnActivate if isActionRef player == 0 if getav variable01 == 0 ; I'm currently "off" setav variable01 1 ; turn on setUnconscious 0 ; not unconscious any more Activate ; tell pod to open else showwarning "just got activated" setav variable01 0 ; turn off evp endif else Activate endif endbegin OnPackageEnd ProtectronNotActive if getav variable01 == 0 Activate ; to get pod to close behind me ; make me unconscious setUnconscious 1 endifendbegin onPackageEnd ProtectronTurnOn if getav variable01 >= 1 setav variable01 3 ;to get it to start patrol endifend
Protectron pod script:
ref myActionRefBegin OnActivate if IsActionRef player == 0 set myActionRef to getActionRef if myActionRef.getav variable01 == 0 setopenstate 0 else setopenstate 1 endif endifEnd
Terminal:
ref myProtectronset myProtectron to getLinkedRefif (myProtectron.getActorValue Variable01 == 0) myProtectron.activate door 1endif
Any idea what I'm doing wrong here?