Knowledge base
Search Blueprint patterns
Searching…
Knowledge base
The structure WoalzCraft generates. Paste into the plugin to instantiate as a real Blueprint.
{
"nodes": [
{
"id": "n_begin",
"position": {
"x": 0,
"y": 0
},
"node_type": "EventBeginPlay"
},
{
"id": "n_timer",
"position": {
"x": 250,
"y": 0
},
"node_type": "CallFunction",
"input_values": {
"bLooping": "true",
"FunctionName": "SpawnEnemy"
},
"function_name": "K2_SetTimer"
},
{
"id": "n_interval",
"position": {
"x": 50,
"y": 100
},
"node_type": "GetVariable",
"variable_name": "SpawnInterval"
},
{
"id": "n_spawnevent",
"position": {
"x": 0,
"y": 300
},
"node_type": "CustomEvent",
"event_name": "SpawnEnemy"
},
{
"id": "n_branch",
"position": {
"x": 250,
"y": 300
},
"node_type": "Branch"
},
{
"id": "n_getcount",
"position": {
"x": 50,
"y": 400
},
"node_type": "GetVariable",
"variable_name": "SpawnedCount"
},
{
"id": "n_getmax",
"position": {
"x": 50,
"y": 500
},
"node_type": "GetVariable",
"variable_name": "MaxEnemies"
},
{
"id": "n_less",
"position": {
"x": 150,
"y": 450
},
"node_type": "Less_FloatFloat"
},
{
"id": "n_getloc",
"position": {
"x": 250,
"y": 550
},
"node_type": "GetActorLocation"
},
{
"id": "n_randvec",
"position": {
"x": 250,
"y": 650
},
"node_type": "CallFunction",
"function_name": "RandomUnitVector"
},
{
"id": "n_radius",
"position": {
"x": 250,
"y": 750
},
"node_type": "GetVariable",
"variable_name": "SpawnRadius"
},
{
"id": "n_multvec",
"position": {
"x": 450,
"y": 650
},
"node_type": "Multiply_VectorFloat"
},
{
"id": "n_addvec",
"position": {
"x": 600,
"y": 550
},
"node_type": "Add_VectorVector"
},
{
"id": "n_maketransform",
"position": {
"x": 750,
"y": 500
},
"node_type": "MakeTransform"
},
{
"id": "n_spawn",
"position": {
"x": 500,
"y": 300
},
"node_type": "SpawnActorFromClass"
},
{
"id": "n_increment",
"position": {
"x": 750,
"y": 300
},
"node_type": "SetVariable",
"variable_name": "SpawnedCount"
}
],
"variables": [
{
"name": "SpawnInterval",
"type": "float",
"default_value": "3.0"
},
{
"name": "MaxEnemies",
"type": "int",
"default_value": "5"
},
{
"name": "SpawnedCount",
"type": "int",
"default_value": "0"
},
{
"name": "SpawnRadius",
"type": "float",
"default_value": "500.0"
}
],
"components": [
{
"name": "Root",
"type": "SceneComponent",
"is_root": true
},
{
"name": "SpawnVolume",
"type": "BoxComponent",
"parent": "Root",
"properties": {
"BoxExtent": {
"X": 500,
"Y": 500,
"Z": 100
}
}
}
],
"connections": [
{
"to_pin": "execute",
"to_node": "n_timer",
"from_pin": "then",
"from_node": "n_begin"
},
{
"to_pin": "Time",
"to_node": "n_timer",
"from_pin": "SpawnInterval",
"from_node": "n_interval"
},
{
"to_pin": "execute",
"to_node": "n_branch",
"from_pin": "then",
"from_node": "n_spawnevent"
},
{
"to_pin": "A",
"to_node": "n_less",
"from_pin": "SpawnedCount",
"from_node": "n_getcount"
},
{
"to_pin": "B",
"to_node": "n_less",
"from_pin": "MaxEnemies",
"from_node": "n_getmax"
},
{
"to_pin": "Condition",
"to_node": "n_branch",
"from_pin": "ReturnValue",
"from_node": "n_less"
},
{
"to_pin": "execute",
"to_node": "n_spawn",
"from_pin": "then",
"from_node": "n_branch"
},
{
"to_pin": "A",
"to_node": "n_addvec",
"from_pin": "ReturnValue",
"from_node": "n_getloc"
},
{
"to_pin": "A",
"to_node": "n_multvec",
"from_pin": "ReturnValue",
"from_node": "n_randvec"
},
{
"to_pin": "B",
"to_node": "n_multvec",
"from_pin": "SpawnRadius",
"from_node": "n_radius"
},
{
"to_pin": "B",
"to_node": "n_addvec",
"from_pin": "ReturnValue",
"from_node": "n_multvec"
},
{
"to_pin": "Location",
"to_node": "n_maketransform",
"from_pin": "ReturnValue",
"from_node": "n_addvec"
},
{
"to_pin": "SpawnTransform",
"to_node": "n_spawn",
"from_pin": "ReturnValue",
"from_node": "n_maketransform"
},
{
"to_pin": "execute",
"to_node": "n_increment",
"from_pin": "then",
"from_node": "n_spawn"
}
],
"parent_class": "Actor",
"blueprint_name": "BP_EnemySpawner"
}