Forcing an actor to "face" another via ACS?

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!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Forcing an actor to "face" another via ACS?

Re: Forcing an actor to "face" another via ACS?

by Ravick » Mon Mar 19, 2018 9:03 pm

Thank you again, Krokots! :D

Re: Forcing an actor to "face" another via ACS?

by krokots » Sun Mar 18, 2018 4:18 am

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.

Forcing an actor to "face" another via ACS?

by Ravick » Sun Mar 18, 2018 12:18 am

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! :)

Top