Game Development Community

Sending info from client to server before spawnPlayer ?

by Orion Elenzil · in Torque Game Engine · 01/30/2006 (2:45 pm) · 1 replies

Hi All.

I'd like the client to be able to specify some preferences before entering the simulation,
which will influence how the client is instanciated.

Specifically, i'd like to send a gender setting
and have the server user the appropriate dataBlock for that player.


- Where would be a good place to do this ?

For now i just tacked it on as an extra parameter to MissionStartPhase1Ack(),
but that seems pretty kludgy.

thanks,
Orion

#1
01/30/2006 (2:57 pm)
TGE 1.3 Connection Sequence Overview

Short answer: you'll want to send them as part of the connection args, and parse them appropriately on the server side.