|
Post by rustychicken on Jun 16, 2020 17:38:25 GMT
I don’t know if this has been covered or not. If so sorry for the rehashing but I didn’t see it. Is it possible to create an FSM AI that will attack the player ONLY IF the player attacks civilian NPCs? Say a city guard who attacks the player if he sees the player attack a non combat civilian?
Any help would be greatly appreciated!
|
|
|
Post by komposite on Jun 23, 2020 0:06:45 GMT
What you may do is to set your player as a target of the AI, and create a patrol or idle, or whatever you do, and the condition to exit this is the decision "Target is Attacking = true".
Don't know if it will work, but worth the shoot.
|
|
|
Post by rustychicken on Jun 23, 2020 1:54:54 GMT
Thanks I will give this a look.
|
|