Find out wich player spawned an object

Hayhoo (^-^ ~)

So at the beginning of my game each player spawns 3 objects(/Blueprints) and I somehow need an ID or something within the spawned Blueprint of whom spawned these objects. Any Ideas on how to do this?

Sincerely,

Hi,

well, i would suggest making a variable on your blueprint you spawn called “owner” and during spawning set it to the character that spawned it.

But ultimately it depends on what you want to do with it then. Do you want to interact with the owner (i.e. when the object gets damage, the owner gets healed, etc.) or do you just want to have some ui ouput?

Cheers,

Hayhoo :slight_smile:
I am sorry for the late reply.
To answer your question, the spawned objects will not affect the pawn in any way since I only use the pawn for Input and the Camera. To explain it a bit further I am trying to make a “soccer” game and I need to know wich spawned object touched the ball last and to whom it belongs to, so I know which player scored a point.

And now the problem is I dont know how to find out wich player I am using :confused:

Sincerely,