Bind vs bindCmd
by Tasty Green Pees :-, · in Torque Game Engine · 02/21/2006 (12:21 pm) · 3 replies
Can anyone explain the difference between "bindCmd" and "bind"?
About the author
#2
So as I understand it %val, in the function parameter refers to this value that is passed by bind to the specified function. Am I correct?
02/21/2006 (1:24 pm)
Thanks, LabRat. I think I'm understanding this whole thing better.So as I understand it %val, in the function parameter refers to this value that is passed by bind to the specified function. Am I correct?
#3
Could you also explain the syntax of this thing aswell..
'playCel',\"wave\"
Thank you.
02/21/2006 (1:26 pm)
Harold, could tell me what the last parameters in this is:moveMap.bindCmd(keyboard, "ctrl s", "commandToServer('playCel',\"wave\");", "");Could you also explain the syntax of this thing aswell..
'playCel',\"wave\"
Thank you.
Torque Owner Harold "LabRat" Brown
bindCmd allows you to specify a different function for keydown and keyup as well as the values you pass to those functions.