[ZScript] current 3d sector

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!)
User avatar
gwHero
Posts: 360
Joined: Mon May 08, 2017 3:23 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: The Netherlands

[ZScript] current 3d sector

Post by gwHero »

Maybe it's not available (yet), but perhaps I'm just overlooking it: I would like to retrieve the current 3d sector an actor is in/on. CurSector returns the current sector, but when an actor is in a swimmable 3d sector, I also need the properties of that 3d floor. I could do it hard coded of course, but I would like to prevent that.

Return to “Scripting”