Game Development Community

Hide Mesh code and Player Select

by Kirchgessner · in Torque Game Engine · 01/17/2008 (6:21 am) · 0 replies

Ok so ive got the hide mesh code in our engine and working threw console and the like but my problem ensues about player customization. I have no idea where to begin....

I am no scripter mind you but this is an idea for a start using a basic Player select switch case

My brother and I wanted to use something like this for our game BATTLE!!!
Gareth Fouche - SoW - Character Customization

I always thought you could do this by
Switch$(Head);
{
  case "1":
      %client.head="HeadSwitch1";
  case "2":
      %client.head="HeadSwitch2";
}

function HeadSwitch1()
{
%player.skinoff(H002)
%player.skinoff(H003)
}

This of course would lead to a massive amount of switch cases for each customization. not to mention the code needed to put uploadable content on our website.

But I was thinking since our game was going to be free the majority of the stuff we learned was going to be submitted as resources, with respective credit to originators of course. Now the only problem is I don't know how to switch the base player while in the menu like in Gareth Fouche's blog. Our plan was to be able to switch Players base body type and then customize it from there.

If anyone has a link to a resource and/or a tutorial (if at all possible) about how to do this with an msdatabase or a mysql database using the UAC please submit your ideas. Battle is going to be our gift to the community. So all help or ideas are welcome, especially if you are bored and want something to do.