Button down and up
by Adam Troutman · in General Discussion · 06/14/2006 (9:50 pm) · 2 replies
I have a function being called that spawns an object, my problem is that it spawns the item when the button is pushed down and when it is released again, I am wondering if someone can tell me how to fix this.
Torque Owner Paul /*Wedge*/ DElia
function myKeyFunction(%val){ if(%val){ //do stuff } }Would make it only happen when the key is pressed down. If you put !%val, it would do it only when the key is released.