News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Changing entity values from a gui

Started by EoceneMiacid, December 04, 2018, 02:02:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

EoceneMiacid

Kind of a stupid question, most likely. Apologies in advance.

I have several different player classes, each with their own set of weapons.

Set up like this:

entityDef player_class1{
   ...
}

entityDef player_class2{
   ...
}

entityDef player_doommarine{
   "inherit" "player_class1"
   ...
}


So I can change the class by editing player_doommarine.

Obviously, this is not ideal - I would like to have the player choose the desired class when playing a new game, with a nice 3D model representation.

So what is the best method to set the desired player class from a GUI?


bitterman

#2
Try to find "lanSet" in Code and mainmenu.gui. Looks like the same.