Game Development Community

Finding client of player that hit key

by Bristow · in Torque Game Engine · 09/10/2006 (10:30 pm) · 0 replies

Ok basically what I'm trying to do:

function loadShotgun()
{
xxxx.unmountimage(0);
xxxx.mountimage(shotgunimage,0);
}

function loadblaster()
{
 xxxx.unmountimage(0);
xxxx.mountimage(blasterimage,0); 
   
}





moveMap.bind(keyboard, "1", loadShotgun);
moveMap.bind(keyboard, "2", loadblaster);


basically where the "xxxx" is, I want to know if there's a way to find the client of whoever hit the key (in this case when someone hits 1 or 2)