It´s quite simple, i just want that one actor spawn properly within location and scale. The actor spawn in the mouse location, but as you can see in the pic below, it´s spawning weirdly. I´ve teste many things to fix this, searched on internet, but i don´t know why it´s behaving like this.
First Issue: Spawning under the floor.
Second Issue: Spawning with larger scale, even if i´m setting this correctly (i suppose).
So you want the Guardiao Petra to spawn on the ground? Try splitting the vector pin from the “Get Actor Location” node into 3 floats and combining those into a new vector, but replacing the z value with an arbitrary number that will definitely be above the ground. Then, do a “component trace for objects” using the capsule collision as the component directed towards the same location, but with the z value replaced with a number that will definitely be below the ground. Break the hit result pin and use the location pin from it (probably something like “last trace location”) as the spawn location for the “SpawnActor Guardiao Petra” node. This should work as long as you don’t have a ceiling and your arbitrary numbers exceed the upper and lower bounds of the ground in every level you use it in.
It´s too big, i´ll take many prints and i think doesn´t need to do this, because the calling for “Spawn Enemy” is separate from the others powers / itens.
That’s because the scale wasn’t really messed up; you just didn’t see the entirety as it was clipping through the ground. Either that, or it was perspective from it being closer to or farther from the screen. Or maybe I have no idea what I’m talking about and the scale issue is beyond my comprehension. You’re welcome.