Unable to get monster location

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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

Unable to get monster location

Postby Nell Worthingham » Sat Nov 20, 2021 6:44 pm

I want to get the position of the monster and the character, and then calculate the distance between the two. I get position with GetActorX and GetActorY, but these two functions return the wrong location. How do I use this function correctly? Or, How do I get the location of the monster?
Nell Worthingham
 

Re: Unable to get monster location

Postby Apeirogon » Mon Nov 22, 2021 4:18 am

What do you mean "wrong"?
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017


Return to Scripting

Who is online

Users browsing this forum: Logan MTM and 0 guests