Game Development Community

Gun wont shoot.

by Ben Ewing · in Torque Game Engine · 02/11/2006 (3:35 pm) · 2 replies

Ok, I put all the weapon scripts into Tutorial.Base, everything works, but I cant shoot it, I added this in Default.Bind.cs

" function mouseFire(%val)
{
$mvTriggerCount0++;
}

function altTrigger(%val)
{
$mvTriggerCount1++;
}

moveMap.bind( mouse, button0, mouseFire ); "

But, I still cant shoot the gun, and there is nothing in the console.....
What am I doing wrong?

#1
02/11/2006 (4:00 pm)
Not sure, but you could insert
error("Am I in this function");
strategically in your functions to see if they are being called, then track down from there.
#2
02/11/2006 (4:01 pm)
I will try that.

Edit: It runs the function, so the script inside it must be flawed.