how to select object in the game using mouse ?

i want to select three cubes in the game…its an FPS game…so using the crosshair i will select it in 3d space…

You can use raycasting and if the target has a property, change it to trigger actions,

Target = sens.hitobject
If ‘property’ in Target:
Target[‘property’] = True

demo.blend please

Here you go:
selectobject.blend (483 KB)

(user left and right arrow keys to move)

thanks :slight_smile: it works