Enemy select python

Hey all,

I have this script to select different enemies. But the “Select” object won’t stick to the enemy as the enemy moves. I don’t know much about this python because I’m a noob in that. Does anyone know a simpel solution (without a lot of changes as parenting I mean :p) to make the Select stick to the enemy so it moves along with the cube selected? :spin:

Thanks a lot aleady. :yes:

Ps: Wanna use the script? Be my quest :stuck_out_tongue: But you can thank Sunjay03 for it. He made it for me. :wink:

Attachments

Enemy Select.blend (142 KB)

Delete the lines about setting position and replace it with:

select.setParent(hit_ob)

Lol, just set a parent… I feel real stupid right now. xD

Thanks a lot andrew :slight_smile: