OmegaGray479 Posted December 9, 2017 Share Posted December 9, 2017 (edited) Is there another way of making an enemy hostile towards the player without using factions?I've been changing around enemies and I have one now who won't attack me unless I attack them first.I've checked the faction and even made a new one and they still won't attack the player. Edited December 9, 2017 by OmegaGray479 Link to comment Share on other sites More sharing options...
Yulliah Posted December 9, 2017 Share Posted December 9, 2017 The faction needs to be enemy of playerfaction Link to comment Share on other sites More sharing options...
OmegaGray479 Posted December 11, 2017 Author Share Posted December 11, 2017 Is there another way of making an enemy hostile towards the player without using factions?I've been changing around enemies and I have one now who won't attack me unless I attack them first.I've checked the faction and even made a new one and they still won't attack the player.I have the Player Faction set as Enemy in the Feral Ghoul Faction & The Feral Ghoul Faction set as Enemy in the Player Faction but the Feral Ghoul won't attack me unless I attack first. Link to comment Share on other sites More sharing options...
SMB92 Posted December 11, 2017 Share Posted December 11, 2017 No idea but you could try using the Papyrus command, StartCombat. Maybe try clicking on your enemy in console, type StartCombat(Game.GetPlayer). Can't remember if there is any other quick command. You could try variations of that (papyrus is not same as console) like StarCombat.Player etc Link to comment Share on other sites More sharing options...
SKKmods Posted December 11, 2017 Share Posted December 11, 2017 You may have an Aggression/Confidence issue (Unaggressive / cautious) have a read of AI Data Tab and if necessary to avoind editing base game assets, consider using something like this on your hostiles: Function HostileNPCSetValues(ObjectReference akActorRef) akActorRef.SetValue(pAggression, 1.0) ; Aggressive will attack Enemies on sight NOT neutrals. akActorRef.SetValue(pAssistance, 1.0) ; Helps Allies Will only help Allies. akActorRef.SetValue(pConfidence, 4.0) ; Foolhardy will never avoid/flee from anyone. EndFunction Link to comment Share on other sites More sharing options...
SMB92 Posted December 11, 2017 Share Posted December 11, 2017 Lol I was thinking he wanted to do this on the fly from in game :D Link to comment Share on other sites More sharing options...
SKKmods Posted December 11, 2017 Share Posted December 11, 2017 I believe that aggression, assistance and confidence can also be managed on demand from the console with getav and setav: targetID.getav 000002bc ; aggressiontargetID.getav 000002c1 ; assistancetargetID.getav 000002bd ; confidence Link to comment Share on other sites More sharing options...
SMB92 Posted December 11, 2017 Share Posted December 11, 2017 Ah nice, well it guess that answers it both ways :D Link to comment Share on other sites More sharing options...
OmegaGray479 Posted December 12, 2017 Author Share Posted December 12, 2017 Thank you. I'll be able to try this in a day or two. Link to comment Share on other sites More sharing options...
OmegaGray479 Posted December 12, 2017 Author Share Posted December 12, 2017 (edited) Might you be able to provide a link of how to apply this?I'm still working on learning papyrus. Up until now all I've done is change actor and item data, changing inventories and landscaping.I watched this video https://www.youtube.com/watch?v=VIJnSvSnaYo and got to the part when you compile the script but it said Failed. Edit: 121217 919amSo idk how I managed to do this but the enemy that won't attack only happens with my one character.The enemy is hostile to my other characters and the new one that I made to see if that was an issue. Edited December 12, 2017 by OmegaGray479 Link to comment Share on other sites More sharing options...
Recommended Posts