Wonderlarr Posted July 22, 2020 Share Posted July 22, 2020 Hello, I've been working on a mod that uses unconventional ways to deal damage, outside of just normal attacks, but because of this I've been having trouble with aggression, or aggro as I'll be referring to it from now on. My problem here is that the damage doesn't cause the enemies to retaliate at all, not gaining any aggro what so ever, and I think I need to manually put in some way for this to happen. There is a point in my code where I have all the entities the weapon attacks in a table (the weapon is AOE, so it can attack multiple people). The only problem is, I don't have any idea how I'm supposed to apply aggro. Is there a function I can use to manually do it, or is there something else? Link to comment Share on other sites More sharing options...
Thomas Die Posted July 22, 2020 Share Posted July 22, 2020 Prefab.components.combat:SetTarget(prefab_to_be_attacked) Link to comment Share on other sites More sharing options...
Wonderlarr Posted July 23, 2020 Author Share Posted July 23, 2020 5 hours ago, thomas4846 said: Prefab.components.combat:SetTarget(prefab_to_be_attacked) This only seems to halfway fix the problem. This now makes it so the targets I attack gain aggro, but group aggro does not occur. What I mean by group aggro is, for instance, attacking one beefalo will make all the beefalo in the herd start attacking me. Link to comment Share on other sites More sharing options...
Thomas Die Posted July 23, 2020 Share Posted July 23, 2020 Why don't you look into the beefalo file than. Link to comment Share on other sites More sharing options...
Wonderlarr Posted July 24, 2020 Author Share Posted July 24, 2020 Well this isn't a problem with the beefalo script, if I damage a beefalo the whole herd should be attacking me, but it doesn't for some odd reason, even when specifying that I did the damage. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now