UndeadMartyr Posted October 22 Share Posted October 22 I want to have sentry bots in pods like how protectrons sometimes are. I've got the pods lonked to a terminal, but the bots are active. The vanilla scripts don't seem to have a command to render the bots unconscious, which is what I would expect to happen. My guess is that there's another script to do that but I can't find it. How exactly do they work? Link to comment Share on other sites More sharing options...
Drarack Posted October 23 Share Posted October 23 (edited) I don't know if there's scripts in the game for that -- maybe there is. Just a few alt ideas below. Could they be dead in the pod and resurrected when the pod is activated? Also, there's a function for captured NPCs where they do nothing but stay in one place, and all they can do is say stuff. Not sure if works on creatures. And there's some ai functions too that might be useful like disabling ai etc. And maybe disabling movement iirc. Probably would find something in ai functions section in geckwiki website that could help making a script for what you want to do. Edited October 23 by Drarack Link to comment Share on other sites More sharing options...
UndeadMartyr Posted October 23 Author Share Posted October 23 I think it's handled via the setunconscious command line. I'm just not sure where the script is or what it's attached to. The other possibility is faction or ai packages but this has the downside of them still being awake and active (making noise etc.) Link to comment Share on other sites More sharing options...
Drarack Posted October 23 Share Posted October 23 Yeah, that's the function I was thinking of. I think you would have to make a custom script and run it after the player selects something in the terminal, no? Link to comment Share on other sites More sharing options...
UndeadMartyr Posted October 24 Author Share Posted October 24 They need to be set unconscious first...maybe as a script attached to them? Best way would be an OnLoad maybe checking the state of the pods. I tried that script but I must have done a bad reference or scope or something because it didn't work. Link to comment Share on other sites More sharing options...
Drarack Posted October 24 Share Posted October 24 Yeah you seem to have the right idea like you write a script for them that has setunconscious == 1 until your condition is met. That doesn't work? Could try brute force it with a quest script that checks the terminal condition, return if not met, and robots.setunconscious == 0 if it is met. You using hotreload? Link to comment Share on other sites More sharing options...
UndeadMartyr Posted October 26 Author Share Posted October 26 Got it to work- used the relevant quest script to control them. Link to comment Share on other sites More sharing options...
Drarack Posted October 26 Share Posted October 26 Nice, what was it if you can remember off the top of your head? Someone else might look for the answer in the future Link to comment Share on other sites More sharing options...
UndeadMartyr Posted October 27 Author Share Posted October 27 I used an if block in the quest script testing whether the protection pods were closed, with the SetUnconscious command disabling them if so. Both the bots and one of the pods, or at least an enable parent, need to have defined refIDs obviously. Could probably also use the terminal or whatever activates them to change a quest variable directly come to think of it. Link to comment Share on other sites More sharing options...
Drarack Posted October 27 Share Posted October 27 Cheers, good of you to post the solution Link to comment Share on other sites More sharing options...
Recommended Posts