Game Development Community

Player variables - confused

by Neil Marshall · in Torque Game Engine · 06/26/2002 (12:38 pm) · 2 replies

In player.cc there are variables called maxForwardSpeed = 5;
In player.cs in the server folder there are variables called maxForwardSpeed = 14;

now, when I run the game, it seems to be useing the variables from player.cs, my question is, what are the numbers in the .cc file for? Are they just defaults in case there aren't any defined in the script file?

#1
06/26/2002 (12:39 pm)
Yeah, and they are placed in the .cc file so they could be refrenced in the engine as well.
#2
06/26/2002 (12:44 pm)
The script values override the ones defined in the .cc file I believe.