Multi-aim constraint -> get to source objects via scripting

Hi,
I’m looking into the multi-aim constraint component and I was wondering if and how I could get to the source object via scripting? Now I drag and drop the Source Objects I want my player to follow via the inspector in Unity.

But I would like to add a source object via scripting. So when an enemy dies, a new enemy get spawned and automatically added to this list. And I could modify the weight as well this way. But when I get to this multi-aim constraint component via scripting I don’t see a Source Object option.

6677416--765034--upload_2021-1-1_15-58-19.png

Is it possible or am I looking at this the wrong way?
Thx.

I have not used this before but I did find this:

It must have a custom inspector that bnordles all the fields around or presents them differently.

1 Like

Yes, that’s it. Thx Kurt-Dekker!

1 Like