Game Development Community

New weapon

by Xavier "eXoDuS" Amado · in Torque Game Engine · 12/08/2001 (5:34 am) · 1 replies

I have some trouble, or maybe im idiot :)
I added a new weapon, just copying rifle.cs with another name, and loading both scripts in game.cs
But, what i cant use are the numbers to change the weapons, where do i bind them or something? i found nothing in default.bind.cs

#1
12/08/2001 (5:52 am)
Add something like this:

MoveMap.bindCmd(keyboard, "1", "commandToServer(\'use\',\"thompson\");", "");
MoveMap.bindCmd(keyboard, "2", "commandToServer(\'use\',\"bazooka\");", "");
MoveMap.bindCmd(keyboard, "3", "commandToServer(\'use\',\"flamethrower\");", "");
MoveMap.bindCmd(keyboard, "4", "commandToServer(\'use\',\"bar\");", "");

in fps/client/config.cs

That should do it :)

// Clocks out

www.flashthunder.com