Change Game Parameters from Server
by Kostas Karpouzis · in Technical Issues · 07/03/2007 (1:36 am) · 0 replies
Hi!
I think that i miss something about networking in Torque...
I run a dedicated server in starter.racing and a client connected to the server and what i am trying to do is changing some of the game parameters (like score ol the level of healthbar) from the dedicated server and pass these changes to the client.
When i write at the server clientCmdSetScoreCounter(%score) it says that it cannot find function SetScoreCounter although this function exists. The same happens when i want to change the position of the camera at the client from thr server using ToggleCamera.
I think that i miss something about networking, handlers, commandToClinet, commandtoServer etc so if anyone can explain me what's going on with all this stuff i would appreciate it!!
Thanks!
I think that i miss something about networking in Torque...
I run a dedicated server in starter.racing and a client connected to the server and what i am trying to do is changing some of the game parameters (like score ol the level of healthbar) from the dedicated server and pass these changes to the client.
When i write at the server clientCmdSetScoreCounter(%score) it says that it cannot find function SetScoreCounter although this function exists. The same happens when i want to change the position of the camera at the client from thr server using ToggleCamera.
I think that i miss something about networking, handlers, commandToClinet, commandtoServer etc so if anyone can explain me what's going on with all this stuff i would appreciate it!!
Thanks!