Jump to content

Curse you AI!


Devedev

Recommended Posts

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...