Devedev Posted July 30, 2010 Share Posted July 30, 2010 Is there a way to like, freeze AI until I walked into a room? I have a linked door which leads to the room wherein I've placed the AI enemies I intend for the mod's quest, but all but 1 faction is dead when I arrive! Would I have to create a roombound (with/without portal) for that to work? I need help! Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted July 30, 2010 Share Posted July 30, 2010 You could set them all to initially disabled, and enable them when you enter the room, via trigger box or getincell. Link to comment Share on other sites More sharing options...
Devedev Posted July 30, 2010 Author Share Posted July 30, 2010 Awesome! How would I set the trigger to enable them? SetAIEnabled? Or something more complex? Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted July 30, 2010 Share Posted July 30, 2010 In statics, grab an xmarker and drag it anywhere in your cell. Set it to initially disabled.Make each of your bad guys initially disabled, and scroll over the the enable parent tab on their ref. Set it to the xmarker you just added. This makes it so that when this marker is enabled, everything that has it as an enable parent also gets enabled. In your quest script, in a GameMode block, just add the condition if player.getincell mycell myxmakerref.enable endif If you don't want it to happen right when you enter the cell, you can add a trigger box where you want it instead. Then it will look like Begin OnTriggerEnter player myxmarkerref.enable End edit: sorry for the crappy colors, not my doing. Link to comment Share on other sites More sharing options...
pkleiss Posted July 31, 2010 Share Posted July 31, 2010 Just an FYI - If you set an object's enable parent like the actors in this case, you do not need to set them to be initially disabled as they will inherit their enable state from their parent. So if your XMarker is initially disabled, all of your NPCs will automatically be disabled too. Link to comment Share on other sites More sharing options...
Recommended Posts