Unreal Engine 4 (UE4) How to spawn an actor using the level blueprint and an input from the keyboard and where to spawn in the level.
From the keyboard input that was created, drag the pin from pressed and type spawn and click on spawn actor from class. Click the dropdown list next to class and select the class (class blueprint in this case) to be used for spawning.
Where to spawn is done by either getting a location from the level, or be using the location of an existing actor. From the pin of the actor, drag form the pin and find get actor transform to get the location of that actor.
Now the get actor transform can be wired to the spawn actor node to the spawn transform pin.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.