sexta-feira, 25 de março de 2016

BP Compendium: Spawn Actor from Class

Spawn Actor from Class


Creates an actor at the level according to the class and transformation specified.

Input

  • Class: The class of the actor that will be created.
  • Spawn Transform: The transformation that will be used by the actor.
  • Collision Handling Override: Defines how to handle the collision at the time of creation.

Output

  • Return Value: Reference to the actor created.


Example Usage

When this Blueprint is destroyed in the game, it creates an actor of the "Coin" type in the same place.

Click to enlarge


In this example, a "For Loop" is used to create 10 "Pickup Item" at random positions.

Click to enlarge