What does 'bindObj' do?
by Spider · in Torque Game Builder · 08/14/2007 (9:40 pm) · 0 replies
I see the bindObj function in the ActionMap section of the docs, but no explanation.
It seems like a duplicate of the 'bind' function, but the ActionMap function call will be made on a method of the 'object' parameter. That is awesome!
However, it sends a message at key down AND key up apparently, but the arguments don't tell you which one it is like the bindCmd method... You can track it explicitly of course, but I always wonder if that's going to cause problems somehow.
It seems like a duplicate of the 'bind' function, but the ActionMap function call will be made on a method of the 'object' parameter. That is awesome!
However, it sends a message at key down AND key up apparently, but the arguments don't tell you which one it is like the bindCmd method... You can track it explicitly of course, but I always wonder if that's going to cause problems somehow.