You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question:
How can I find out what a monster is currently attacking in an ACS script?
My goal is to determine if the monsters are infighting and do something if they are, like open a door.
Thanks!
The text was updated successfully, but these errors were encountered:
I have not tested this, but you could use CheckActorState to check which monsters are in the "firing" state. This is commonly named "Missile", like with e.g. Imp. Another possible attack state is "Melee".
Sorry what I meant was which actors were getting attacked by a monster. If there are monsters A,B and C and A is attacking, I want to know which of the other 2, B and/or C, are getting attacked
You could track actors' health (APROP_Health) with GetActorProperty and track when they change. Alas, this does not tell who was attacking them, and I have not been able to find a way to specifically hook for "actor X attacked Y with Z damage" type of thing :/
Question:
How can I find out what a monster is currently attacking in an ACS script?
My goal is to determine if the monsters are infighting and do something if they are, like open a door.
Thanks!
The text was updated successfully, but these errors were encountered: