» Sun Nov 18, 2012 10:42 pm
There are a couple of ways to stop everyone attacking the player. But none of them are very straight-forward.
I think the easiest way is to create a couple of factions.
Factions. http://www.creationkit.com/Factions
Create two new factions:
DeafDumbAndBlindGuards
WideAwakeGuards
Make the first Faction "Helps No One", and Neutral to the Player Faction (set it both ends, on Player Faction and on the one you created)
Make the second Faction "Helps Friends and Allies" and an Enemy of the Player Faction (both ways)
Start all enemies in the first Faction
At a trigger box (or whatever other event you want) script to change their faction to the second faction (add: http://www.creationkit.com/AddToFaction_-_Actor and see links at bottom of that to remove ... there is no "change")
Note: Or you could use Aliases and assign deafGuard1, deafGuard2 ... ... awakeGuard1, awakeGuard2 .... .... to the Factions then fill and swap the aliases with your guards as you need. Depends which way works best for you, I think? But I think this way is harder to understand than the Factions way above.
Also, make sure the guards are set to aggressive and whatever else, regardless of which Faction you currently have them in. Just changing the faction will flip them at the player (if he is close enough / attacking or whatever)