Jump to content

Hounds prorioty attack


diovbc

Recommended Posts

as i remember hounds code, they targeting player by default( are we talking about hounds from event?), but if hound get attacked by anything else he broadcasting such information in some radius and other able to target new threat.

short answer - it's all about brains (which you don't need to change in your case) and about functions for combat component. Take a look for (i didn't code for a while, but can show direction which might help) OnAttacked() or OnGetAttacked() in combat component. There also OnAttack(). You can set up your custom functions for hounds prefab to force them not change target if they targeting player.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...