Game Development Community

About Picking Object

by Tom Giant · in Torque 3D Professional · 11/10/2010 (5:36 am) · 2 replies

I want to make the function that permits to pick the object by mouse, it kind of likes RTS game. But the first thing got me stumped. when I called the function "showCursor" to make the cursor visible, my binding function of the mouse button wouldn't be called. (for instance, the callback function "pickTruck" is binded by calling the command "moveMap.bind(mouse, button0, pickTruck);"). Does anyone know the reason and how to solve it?

Thanks for any help in advance.

#1
11/10/2010 (5:26 pm)
Have you checked the docs under scripting -> advanced? the rts prototype section has togle mouse and the like
#2
11/11/2010 (11:29 am)
Oh my god! I'm so careless. Thanks for your reminding.