Get Index of spawned objects

Hey,

This maybe be a stupid question but I’m trying to learn.

I have a list of spawned AI ships that I add to an array, now I want to right click on them and select them as the target. At the moment I can manually set the index target but I’ve no idea how to get its index in the array based on which one I click on.

Thanks in advanced

You can get index of an object by using the FindItem node.

Use it like this:

Cheers for that, I have actually solved myself without the need to use an array. I Check the objects names against the currently selected name