I use the basic first person shooter example map.
I have made a blueprint “tester” that is a cube that rotates. It gets spawned in the level by the level blueprint.
In the firstpersoncharacter blueprint i made a linetrace so that if i shoot one of the white cubes that are already in the level (staticmeshActors) the cube stops spinning.
I am using “Get All Actors of Class” to set a variable “spinning” inside my tester object to false.
Is there a better way to do this instead of “Get All Actors of Class” to set that variable “spinning” that is inside my “tester” blueprint?