Game Development Community

How to mount a camera to a player in multiplayer game

by Pavel Tovarys · in Torque Game Builder · 12/14/2007 (5:46 pm) · 1 replies

Hello,
Does anybody know how to mount a camera to a player in multiplayer game? I have no idea how to do that, because the player is create on the server side and the camera/scene on the client side.
Thanks for any help.
Pavel T..

#1
01/15/2008 (6:27 am)
The player is represented on the client side as well. You'll just mount it the same way. The player must exist on the client at least in representative form, otherwise people couldn't see what is happening. The key difference is that the server-side player information is authoritative, while the client side should be treated as untrusted.

It is possible to force the camera by the server, since the camera is an object and the server should have the ability to direct the camera. One has to wonder if it's really worth it, sometimes it is.