Game Development Community

Retrieve local player information

by Nocera Luciano · in Torque Game Engine · 03/25/2006 (2:23 pm) · 1 replies

Is it %client in GameConnection::onConnect()(from "~/common/server/clientConnection.cs") where we create our local player?

this %client is a LocalClientConnection object, and how can I retrieve some local player information such as localplayer position and player name?

#1
03/26/2006 (9:53 am)
The client does not have a "position", and I believe their name is parsed into that function, so just look at it. No player objects is created until GameConnection::onClientEnterGame which you can follow the code there that creates a camera, player, and sets a position and the client name to the player.