Game Development Community

passing prefs from client to server

by Tom Vogt · in Torque Game Engine · 09/03/2002 (4:05 am) · 2 replies

I want to pass preferences from the client to the server on connect, i.e. in the GUI you select a vehicle, weapon, skin, race, whatever. This is stored in your preferences. On connect, I want to pass this information to the server, because depending on what you selected, a different player shape will be created.

I've looked everywhere and not found anything. I know it's possible to use commands to server, but that requires I don't create the player object right away.

Any go on this? Think preselecting your race in RW, so you start as an Orc or Human, not choosing your race in-game.

#1
06/13/2003 (9:37 pm)
I have the same problem at the moment. I realise no one has replied to this post in 10 months but maybe someone can help...?

I only have one variable to pass from client to server, I'm sure theres an obvious way to do it...

Any ideas?
#2
06/13/2003 (10:08 pm)
Don't think of it as passing a variable. Call a remote function, with the parameter being the variable. (Ok so that's passing a variable)

See this doc: www.garagegames.com/docs/torque.sdk/engine/index.php#Networking
Under the heading "Network Console Commands"