Back to search
ExampleEffects

Create a Blueprint Actor that plays a sound and spawns a particle effect at its location when destroyed

Updated 3mo ago
UE 5.4UE 5.7#sound#particle#spawn#destroy

Blueprint JSON

The structure WoalzCraft generates. Paste into the plugin to instantiate as a real Blueprint.

{
  "nodes": [
    {
      "id": "n_endplay",
      "position": {
        "x": 0,
        "y": 0
      },
      "node_type": "Event",
      "event_name": "EndPlay"
    },
    {
      "id": "n_getloc",
      "position": {
        "x": 200,
        "y": 100
      },
      "node_type": "GetActorLocation"
    },
    {
      "id": "n_sound",
      "position": {
        "x": 400,
        "y": 0
      },
      "node_type": "PlaySoundAtLocation"
    },
    {
      "id": "n_particle",
      "position": {
        "x": 400,
        "y": 200
      },
      "node_type": "SpawnEmitterAtLocation"
    }
  ],
  "connections": [
    {
      "to_pin": "execute",
      "to_node": "n_sound",
      "from_pin": "then",
      "from_node": "n_endplay"
    },
    {
      "to_pin": "execute",
      "to_node": "n_particle",
      "from_pin": "then",
      "from_node": "n_sound"
    },
    {
      "to_pin": "Location",
      "to_node": "n_sound",
      "from_pin": "ReturnValue",
      "from_node": "n_getloc"
    },
    {
      "to_pin": "Location",
      "to_node": "n_particle",
      "from_pin": "ReturnValue",
      "from_node": "n_getloc"
    }
  ],
  "parent_class": "Actor",
  "blueprint_name": "BP_DestructionFX"
}