add_field_node
Author a field command node into a UFieldSystem and save the asset, wiring scalar, vector, or integer nodes to physics targets.
Instructions
Author a field command node into a UFieldSystem and persist it. Builds a transient authoring field U-node (selected by node_type), resolves the physics target to an EFieldPhysicsType, constructs the runtime FFieldSystemCommand via FFieldObjectCommands::CreateFieldCommand, appends it to UFieldSystem.Commands, and saves the asset. node_type accepts "RadialFalloff", "PlaneFalloff", "BoxFalloff", "WaveScalar", "UniformScalar", "NoiseField", "UniformInteger", "RadialIntMask", "UniformVector", "RadialVector", "RotatedRadialVector", "RandomVector". Vector nodes pair with vector targets (LinearVelocity/LinearForce); scalar with strain/threshold; integer with state (DynamicState). target is a physics target attribute name like "LinearVelocity", "ExternalClusterStrain", "DynamicState". falloff_type accepts "Inverse", "Squared", "Logarithmic", or "None". Defaults to "Linear".
Returns: { field_system_path: string, node_type: string, target: string, physics_type_name: string, command_count: int, success: bool, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Optional RotatedRadialVector rotation angle in degrees; defaults to 0.0 | |
| period | No | Optional WaveScalar period; defaults to 1.0 | |
| radius | No | Optional falloff / mask radius; defaults to 100.0 | |
| target | Yes | Physics target attribute name, e.g. "LinearForce", "LinearVelocity", "ExternalClusterStrain", "DynamicState" | |
| distance | No | Optional plane distance limit for PlaneFalloff; defaults to 0.0 | |
| position | No | Optional [x, y, z] world / center position | |
| direction | No | Optional [x, y, z]; uniform-vector direction, plane normal (PlaneFalloff), or rotation axis (RotatedRadialVector) | |
| magnitude | No | Optional scalar magnitude; defaults to 1.0 | |
| max_range | No | Optional remap upper bound for falloff/noise nodes; defaults to 1.0 | |
| min_range | No | Optional remap lower bound for falloff/noise nodes; defaults to 0.0 | |
| node_type | Yes | One of "RadialFalloff", "PlaneFalloff", "BoxFalloff", "WaveScalar", "UniformScalar", "NoiseField", "UniformInteger", "RadialIntMask", "UniformVector", "RadialVector", "RotatedRadialVector", "RandomVector" | |
| wavelength | No | Optional WaveScalar wavelength; defaults to 10000.0 | |
| falloff_type | No | Optional EFieldFalloffType; defaults to "Linear" | |
| default_value | No | Optional out-of-range value for falloff nodes; defaults to 0.0 | |
| wave_function | No | Optional WaveScalar function "Cosine", "Gaussian", "Falloff", "Decay"; defaults to "Cosine" | |
| exterior_value | No | Optional RadialIntMask exterior integer; defaults to 0 | |
| interior_value | No | Optional RadialIntMask interior integer; defaults to 1 | |
| mask_condition | No | Optional RadialIntMask condition "Always", "MergeInterior", "MergeExterior"; defaults to "Always" | |
| field_system_path | Yes | Asset path of the UFieldSystem (e.g. "/Game/MyGame/FS_Example") |