change texture of my enemy when my character destroys a seed

Material Instance Dynamic.

When you don’t know the return type, you can always place the mouse over the output pin and get the type:

or RMB and Promote to Variable, to automatically create the a variable of the right type: