GetThingRoomHeight? OR GetThingCeilingHeight?

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
Tormentor667
Posts: 13554
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany

GetThingRoomHeight? OR GetThingCeilingHeight?

Post by Tormentor667 »

Is it possible to get a sector's general height or ceiling height by "asking a thing, that is in"?
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: GetThingRoomHeight? OR GetThingCeilingHeight?

Post by Blue Shadow »

I'd imagine you'd do: int height = [wiki]GetActorCeilingZ(TID)[/wiki] - [wiki]GetActorFloorZ(TID)[/wiki];
User avatar
Tormentor667
Posts: 13554
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany

Re: GetThingRoomHeight? OR GetThingCeilingHeight?

Post by Tormentor667 »

Ah, wasn't aware of that. Thanks kindly, that will help :)

Return to “Scripting”