Game Development Community

key

by Robert Carroll · in Torque Game Builder · 10/03/2009 (8:41 pm) · 1 replies

Im really off today, and im new to TGB but how what would I say to make this on#1Key instead of Mouse Up?
==============================================================================================
function SwapImageBehavior::onRightMouseUp(%this, %dstObj, %srcRef, %dstRef, %time, %normal, %
===========================================
contactCount, %contacts)
{
if (isObject(%this.image))
%this.owner.setImageMap(%this.image, %this.frame);
}

#1
10/04/2009 (5:36 pm)
I think you want the bind or bindCmd functions for this.