GetUDMFInt(), GetUDMFFloat() & GetUDMFString() For Things

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Fishytza
Posts: 781
Joined: Wed Feb 23, 2011 11:04 am
Preferred Pronouns: No Preference
Contact:

GetUDMFInt(), GetUDMFFloat() & GetUDMFString() For Things

Post by Fishytza »

Pretty please implement GetUDMFInt/Float/String() for things/actors.

I do not know what the technical reason is for why this isn't done already (considering you can fetch UDMF (user_*) properties off of sectors, lines and sidedefs via the GetUDMF* functions), but at the moment it would be useful to me (as well as others) to be able to set and get UDMF properties on map things as well.

Apologies if this was asked before.

EDIT: Just to clarify, I am aware I can define user_* variables in actor definitions and GZDB will set them accordingly if I also define them in the Custom tab. The problem is I am not using custom actors. So, as a alternative, I will accept if the `extend` keyword allows you to add more variables to existing actor definitions, for example:

Code: Select all

extend class Actor
{
    int user_blub;
}

Return to “Feature Suggestions [GZDoom]”