UDMF Custom Sector Fields - How to access them?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, 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.

UDMF Custom Sector Fields - How to access them?

Postby FFFFRRRR » Sun Jan 03, 2021 4:20 am

Hello!

I have always noticed that sectors in UDMF have the ability to store custom fields. In GZDoombuilder, it looks like there is a whole lot of different data that you can store in that.
Spoiler:

Now, if I define one of those fields, in what way can I access that data? Can I use them in ACS, can they only be retrieved with ZScript, do they have other purposes, or is that purely a GZDB organisation-type thing? I couldn't find anything on the wiki about it.
User avatar
FFFFRRRR
🍋🍋🍋🍋
 
Joined: 04 Nov 2017

Re: UDMF Custom Sector Fields - How to access them?

Postby NicoTheGoat » Sun Jan 03, 2021 6:04 am

Custom UDMF fields can be accessed through Get{Line,Side,Sector}UDMF{Int,Fixed} in ACS and GetUDMF{String,Int,Float} in ZScript.
User avatar
NicoTheGoat
 
Joined: 29 Dec 2019
Discord: Nico#3419
Github ID: nicothegoat
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)

Re: UDMF Custom Sector Fields - How to access them?

Postby FFFFRRRR » Sun Jan 03, 2021 8:46 am

Very nice, thank you!
User avatar
FFFFRRRR
🍋🍋🍋🍋
 
Joined: 04 Nov 2017


Return to Mapping

Who is online

Users browsing this forum: No registered users and 0 guests