How can I check wether DoomGuy is standing on something?

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.

How can I check wether DoomGuy is standing on something?

Postby PeceMan » Thu Feb 18, 2021 7:19 pm

So far I've been working with GetActorZ()-GetActorFloorZ , but I'm afraid this will fail with 3d floors and with thing-bridges. If posible, I would also like to be able to know wether DoomGuy is standing on an enemy.
User avatar
PeceMan
 
Joined: 30 Oct 2020
Operating System: Windows 10/8.1/8/201x 64-bit

Re: How can I check wether DoomGuy is standing on something?

Postby Cherno » Thu Feb 18, 2021 8:18 pm

User avatar
Cherno
 
Joined: 06 Dec 2016

Re: How can I check wether DoomGuy is standing on something?

Postby PeceMan » Thu Feb 18, 2021 8:24 pm

I don't feel very smart right now, I probably should've checked the wiki first...
Thanks!
User avatar
PeceMan
 
Joined: 30 Oct 2020
Operating System: Windows 10/8.1/8/201x 64-bit


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest