How to spawn an Actor in a SPECIFIC location?
I have 3 blueprint classes.
The first one is the Third Person Character blueprint I got from the engine.
The second is BP_Cube created from the cube static mesh. The third is BP_Shpere created from the sphere static mesh.
BP_Cube and BP_Sphere both have a variable called defaultSpawnLocation of the type of Transform. The default value of them can be seen in the attached pictures.
I want to press F key in game and spawn BP_Cube and BP_Sphere according to their variable defaultSpawnLocation.
This is my implementation. It was not complete because I did not know how to access the variable defaultSpawnLocation in the Third Person Character blueprint.
asked Jan 21 '19 at 09:12 AM in Blueprint Scripting
use the GetClassDefault node to obtain the default value of those clases to spawn them
answered Jan 21 '19 at 09:15 AM
answered Jan 21 '19 at 12:14 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here