Snake0391 Posted January 25, 2010 Share Posted January 25, 2010 Hi I made a zombie mod and the zombies wander, but only inside one cell. How do I make it so that they wander everywhere? Like if they're n megaton, I want them to wander in the bars and houses and the wasteland. Or is it not possible? Link to comment Share on other sites More sharing options...
pkleiss Posted January 25, 2010 Share Posted January 25, 2010 Two things: Processing does not occur unless the player is in the cell. Therfore, your zombies won't wander in any cells that the player isn't in. Creatures will, however, follow the player from cell to cell (in combat situations) as long as each cell has the same "encounter zone". Through AI Packages, you can tell an actor to go to a diferent cell, and they will leave the current cell for the other cell, but they won't process until the palyer enters. If you want your zombies to go to different cells on their own, then you have to give them a different AI Package for each destination, and then set some criteria to govern which package will be used. Here is an example: Zombie packaes in order: 1 - Travel to Moriarty's Saloon2 - Travel to The Brass lantern3 - Travel to Moira's (Craterside Supply)4 - Sandbox (any,any,any) Each of the travel packages would have the "Must reach destination" flag ticked (the duration is unimportant) so the package will continue (once started) until they reach their destination. The destination can be any persistent reference in the cell.Then you might have a quest script that generates a random number between 1 and 3 every hour (or whatever time you want). Then each travel package would haev a condition based on the the quest script random number. So if the number is 1, package 1 will run, if its 2, then travel package 2 will run, etc. The condition you would use is GetScriptVariable <varibale name> == (1,2,3,etc...). Once the travel packges complete, you set the quest script variable back to zero by using the "On End" results script for the package. That way the sanbox package will be chosen once any of the travel packages end. And the cycle will repeat. For this to work, the actor must have the "no low level processing" unticked. Link to comment Share on other sites More sharing options...
Recommended Posts