UDMF Specific functions

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Demolisher
Posts: 1749
Joined: Mon Aug 11, 2008 12:59 pm
Graphics Processor: nVidia with Vulkan support
Location: Winchester, VA
Contact:

UDMF Specific functions

Post by Demolisher »

From ZSpecial.acs:

Code: Select all

	-1:GetLineUDMFInt(2),
	-2:GetLineUDMFFixed(2),
	-3:GetThingUDMFInt(2),
	-4:GetThingUDMFFixed(2),
	-5:GetSectorUDMFInt(2),
	-6:GetSectorUDMFFixed(2),
	-7:GetSideUDMFInt(3),
	-8:GetSideUDMFFixed(3),
Are these usable? They seem to be undocumented.
User avatar
Demolisher
Posts: 1749
Joined: Mon Aug 11, 2008 12:59 pm
Graphics Processor: nVidia with Vulkan support
Location: Winchester, VA
Contact:

Re: UDMF Specific functions

Post by Demolisher »

Curiosity strikes again, sorry for the bump, I didn't feel the need for a new thread.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: UDMF Specific functions

Post by Ceeb »

I too am curious about these functions. Why, with them, you could have more than three arguments to a script, for instance. :3:
User avatar
Demolisher
Posts: 1749
Joined: Mon Aug 11, 2008 12:59 pm
Graphics Processor: nVidia with Vulkan support
Location: Winchester, VA
Contact:

Re: UDMF Specific functions

Post by Demolisher »

They seem self explanatory, but I don't know the variable order, making them useless atm.
User avatar
CodeImp
Posts: 456
Joined: Sun Dec 28, 2003 7:40 pm
Location: Netherlands
Contact:

Re: UDMF Specific functions

Post by CodeImp »

A guess here: GetLineUDMFInt(lineid, fieldname)
Example: GetLineUDMFInt(14, s:"maxbrightness")
Where "maxbrightness" is ofcourse some custom UDMF field you added to that line and it has to be of Integer type, or use the other functions to read the value :)
User avatar
NeuralStunner
 
 
Posts: 12326
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: UDMF Specific functions

Post by NeuralStunner »

:shock: These could come in very handy.
carlcyber
Posts: 163
Joined: Thu Jan 27, 2005 1:04 am

Re: UDMF Specific functions

Post by carlcyber »

Code: Select all

GetLineUDMFInt (int lineid, str fieldname);
GetLineUDMFFixed (int lineid, str fieldname);
GetThingUDMFInt // Not implemented. guess: (int tid, str fieldname)
GetThingUDMFFixed // Not implemented. guess: (int tid, str fieldname)
GetSectorUDMFInt (int tag, str fieldname);
GetSectorUDMFFixed (int tag, str fieldname);
GetSideUDMFInt (int lineid, int side, str fieldname);
GetSideUDMFFixed (int lineid, int side, str fieldname);  
lineid = 0 represents the calling line.
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: UDMF Specific functions

Post by Caligari87 »

Can anyone add these to the Wiki? I'd try, but I tend to botch stuff like that horribly.

8-)
Locked

Return to “Editing (Archive)”