What i want to do is add a box
collision around a i.e a tree, i already have a blueprint that has a script with what is supposed to happen if player hits that tree and in that blueprint in the viewport i have added a box collision.
The reason i want to do this is because i want to skip manually adding my box collider in the map manually to all trees and other static elements that i want to have a hitbox.
I did a test code that spawns my blueprint but it doesn’t work quite well unfortunately.
What i did is i added a tag to some test trees in the map and i loop though them and spawn my box collider in their position but what happens is that my loop goes though them all and then adds unlimited amount of my hitbox to the last tree in that loop which is not what it is intended to do…
Hopefully this describes what i want to accomplish