Python to select object

Hi all,
First, sorry for the dubble post… I posted this 2 at game engine help… Cause I didn’t know where to post it… Hope you don’t mind.

I need a python script I can select some types of objects with. I am making a Rpg game and I need te be able to select enemies and for example attack them.

I prever the script can only select objects with a certain property. For example only objects with the property: “enemy”.

I am still little noob in python so with any help I’ll try to figure it out. :stuck_out_tongue:

Thx a lot already!

Already solved by Sunjay03 =] Thx a lot!

http://blenderartists.org/forum/showthread.php?t=164987