This should be all scriptable.
Lets get started!
There are several things we have to do in order to get an avatar selection screen. Lets first take a look at the things that you should have working already and that I will NOT be covering in this resource.
First you should have at least two workable models with their animations. By this I mean models such as the Ork from GG, or the Elf. For this resource I will be using our own models from SDSC.
Make sure you get images of your player models to add them in the avatar selection window.
I think that is all we need for now.
Now the first thing we have to change is the button to start the game, we are going to push to the canvas a new window. here it is the code for the window. It contains tree imageButtonCrls, change the image path to direct it to your image files...
(Code ...)
Create a Global variable that will run on the client side to identify the character that we want to play with. I know globals are evil, but for the sake of this tutorial we are going to make it like this sicen I have been experiencing some problems when calling this function from the GUI an passing parameters to the functions. I will try to come with a more elegant solution to the problem, but for now this should do.
(Code...)
Make sure you call the mission selection window after you have selected the avatar.
The construction of the avatar, or the definition of the datablock will not happen until the games starts running.
You should have a fully functional selection window to use different avatars.
Enjoy.
--------------------------
Working out the bugs
1) Global variable does not work on non-local client
2) models show up, but the animations doesn't work.
3) ...