SeinARTS Effect Library
Class · USeinEffectBPFL : UBlueprintFunctionLibrary
#include "Lib/SeinEffectBPFL.h"
deterministic: safe in simulation code
Nodes for applying and removing effects, asking which effects and stacks an entity or player has, and reading and changing the number fields of components.
Blueprint nodes
Section titled “Blueprint nodes”Effect
Apply Effect
Section titled “Apply Effect”Apply a USeinEffect class to a target. Scope from the effect class defaults determines storage location (Instance on target, Class / Player on target owner’s PlayerState). Returns the world-global effect instance ID, or 0 if the apply was rejected (nothing changed) or deferred to the next PreTick. Deferred zero is not a reservation; stacking and validity resolve only when the queue drains.
static int64 SeinApplyEffect(const UObject* WorldContextObject, FSeinEntityHandle TargetHandle, TSubclassOf<USeinEffect> EffectClass, FSeinEntityHandle SourceHandle);Remove Effect
Section titled “Remove Effect”Target convenience for removing a specific effect instance by ID. The live target selects its Instance storage and owning player’s Class/Player lists; use Remove Effect by ID when no live target is available.
static void SeinRemoveEffect(const UObject* WorldContextObject, FSeinEntityHandle TargetHandle, int64 EffectInstanceID);Remove Effect by ID
Section titled “Remove Effect by ID”Remove a specific effect using its world-global ID alone. Returns false when no active effect owns that ID.
static bool SeinRemoveEffectByID(const UObject* WorldContextObject, int64 EffectInstanceID);Remove Effects With Tag
Section titled “Remove Effects With Tag”Remove every active effect whose class defaults EffectTag matches the given tag. Walks all three scopes anchored at the target and its owner.
static void SeinRemoveEffectsWithTag(const UObject* WorldContextObject, FSeinEntityHandle TargetHandle, FGameplayTag Tag);Has Effect With Tag
Section titled “Has Effect With Tag”True if any Instance-scope active effect on the target has a matching EffectTag.
static bool SeinHasEffectWithTag(const UObject* WorldContextObject, FSeinEntityHandle TargetHandle, FGameplayTag Tag);Get Effect Stacks
Section titled “Get Effect Stacks”Sum of CurrentStacks across all Instance-scope active effects on the target whose class defaults EffectTag matches.
static int32 SeinGetEffectStacks(const UObject* WorldContextObject, FSeinEntityHandle TargetHandle, FGameplayTag EffectTag);Has Effect With Tag for Player
Section titled “Has Effect With Tag for Player”Query the Class- or Player-scope storage owned by PlayerID. Instance is invalid without an entity target and deterministically returns false.
static bool SeinHasEffectWithTagForPlayer(const UObject* WorldContextObject, FSeinPlayerID PlayerID, FGameplayTag EffectTag, ESeinModifierScope Scope);Get Effect Stacks for Player
Section titled “Get Effect Stacks for Player”Sum stacks in the selected Class- or Player-scope storage. Instance is invalid without an entity target and deterministically returns zero.
static int32 SeinGetEffectStacksForPlayer(const UObject* WorldContextObject, FSeinPlayerID PlayerID, FGameplayTag EffectTag, ESeinModifierScope Scope);Attribute
Get Attribute
Section titled “Get Attribute”One number field of an entity’s component (Fixed Point or integer). Value is what the simulation reads, with every effect that modifies the field applied; Base is the value without them. Field Name takes a field path like a modifier’s: Speed, VisionStamps[0].Radius, ResourceCaps[SeinARTS.Resource.Minerals], or a Blueprint component’s variable name. For a whole component at its base, use the Get Base Data node. Returns false, with both zero, when the entity, component or number field can’t be found.
static bool SeinGetAttribute(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, UScriptStruct* ComponentType, FName FieldName, FFixedPoint& Value, FFixedPoint& Base);Set Base Attribute
Section titled “Set Base Attribute”Set a number field’s base. The field takes it with every effect that modifies it applied; with none on it, this sets the field. Returns false when the entity, component or number field can’t be found or the call is outside the simulation.
static bool SeinSetBaseAttribute(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, UScriptStruct* ComponentType, FName FieldName, FFixedPoint Base);Apply Field Delta
Section titled “Apply Field Delta”Add Delta to one number field of any component, then clamp: the schema-free way to change a stat. Damage, healing, suppression, ammo and morale are all this node against your own component, so the framework never needs to know what health is.
The add saturates instead of wrapping. Clamp Min floors the result at Min Value and Clamp Max caps it at Max Value; both are off by default, so an unwired node is a plain add. With both on, Min Value above Max Value refuses the call. Field Name takes a field path like Get Attribute’s. The field is written only when the value changes. On a field effects modify, the delta and the clamps act on its base, and the effects apply on top again.
New Value is the field after the call, Changed says whether it was written, and At Min / At Max say the base sits on an enabled bound (At Min with Min Value 0 is “health reached zero”: your cue to Notify Death, Destroy Entity or apply a downed effect). Returns false, with every output zero or false, when the entity, component or number field can’t be found or the call is outside the simulation.
static bool SeinApplyFieldDelta(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, UScriptStruct* StructType, FName FieldName, FFixedPoint Delta, bool bClampMin, FFixedPoint MinValue, bool bClampMax, FFixedPoint MaxValue, FFixedPoint& NewValue, bool& bChanged, bool& bAtMin, bool& bAtMax);