Hi there,
I'd like to make an actor "face" anotehr one(s) via ACS. I mean, It'd be just like DECORATE's "A_FaceTarget", but not restricted to actor's target; I'd like to force an actor to face any TID'ed actor as I wish. How could I do that?
Thanks in advance!
Forcing an actor to "face" another via ACS?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Re: Forcing an actor to "face" another via ACS?
You can use SetActorAngle.
First, calculate the angle between actor A and B from positions. I think it is atan2(B.Y - A.Y , B.X - A.X). Convert that to fixed angle (check Definitions.
First, calculate the angle between actor A and B from positions. I think it is atan2(B.Y - A.Y , B.X - A.X). Convert that to fixed angle (check Definitions.
Re: Forcing an actor to "face" another via ACS?
Thank you again, Krokots!