Commandtoserver - where?
by Josiah Wang · in Torque Game Engine · 01/14/2005 (3:04 pm) · 1 replies
While perusing script files, i noticed a few calls to CommandToServer, one of which being used. I looked through all the files in the /net directory, btu i couldn't find them. Whereabouts can I find these calls (more specifically, the 'use' command that is called when i 'use' a different weapon)
thanks!
thanks!
Torque Owner Gary Haussmann
commandToServer('SpawnCritters',3);it will actually send data to the server which will then execute, on the server, the command named
"serverCmdSpawnCritters". So look for the script function "serverCmdUse" in the script files located in starter.fps/server/scripts. Most of the "serverCmd..." function are in commands.cs, although I think serverCmdUse is in inventory.cs.