Shared library and interfaces reference¶
The shared function library and the interfaces that connect pawns, Anim Blueprints and systems.
How to read these tables
Settings are the values you tune: select the component in your pawn Blueprint (or open the asset) and look in the Details panel under the category shown. Runtime state is written by the system while it runs; read it, do not set it. Functions marked pure have no execution pins. The descriptions are the same as the Details panel tooltips. Default is the class default; where a sample pawn sets a different value on its component, the description says so ().
BPFL_GASPALS¶
/GASPALS/Systems/BPFL_GASPALS · parent BlueprintFunctionLibrary
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
GetHoldToggleInput (pure) | bToggle (Boolean), bPressed (Boolean), bCurrent (Boolean), __WorldContext (Object ref) | bChanged (Boolean), bNewValue (Boolean) | Hold or toggle input from one button edge. Call it on both edges (pressed and released) of an input action. Hold (bToggle false): changes on both edges, the new value is the button state. Toggle: changes on press only, the new value is the opposite of bCurrent. Only act when bChanged is true. |
CheckConsoleVariables | Pawn (Pawn ref), PawnConsoleVariables (String), __WorldContext (Object ref) | For the locally controlled Pawn: one on-screen warning (orange, 30 s, one key so it never stacks) listing the GASPALS data-driven console variables (DDCvar.*) this project does not declare. It checks the shared list plus PawnConsoleVariables: a comma-separated list of the names only this pawn's side reads (the Mover pawn passes its Mover-only variables; leave it empty when there are none). Called by the pawns when possessed (Possessed_Client). | |
CopyComponentTags | Source (ActorComponent ref), Target (ActorComponent ref), __WorldContext (Object ref) | Give Target the component tags of Source (a component cannot set another component tags from its own graphs). Used for generated first-person copies so tags such as DoNotAttach carry over. | |
GetConsoleVariableBoolOr | Name (String), Default (Boolean), __WorldContext (Object ref) | Value (Boolean) | Bool value of the console variable Name, or Default when it does not exist. Use it for engine debug toggles that Shipping and Test builds compile out (a.AnimNode.OffsetRootBone.Enable, a.AnimNode.FootPlacement.Enable): Get Console Variable Bool Value returns false for those, although the anim nodes they toggle stay on. |
GetConsoleVariableIntOr | Name (String), Default (Integer), __WorldContext (Object ref) | Value (Integer) | Integer value of the console variable Name, or Default when the project does not declare it (Get Console Variable Int Value returns 0 for a missing variable, which is a valid index). |
GetOwningPawnFromActor (pure) | Actor (Actor ref), __WorldContext (Object ref) | ParentPawn (Pawn ref), bSuccess (Boolean) | Walks up the owner chain (actor owner or parent component owner) from Actor until a pawn is found. Returns that pawn and whether one was found. Returns the actor itself for a pawn. |
GetOwningPlayerController (pure) | Actor (Actor ref), __WorldContext (Object ref) | PlayerController (PlayerController ref), bSuccess (Boolean) | The player controller that controls the pawn owning Actor (GetOwningPawnFromActor, then its controller). Use it as the owner of widgets a component creates, instead of player 0, so menus open on the right player in split-screen. bSuccess is false for AI or unpossessed pawns. |
GetRagdollSystem (pure) | Actor (Actor ref), __WorldContext (Object ref) | RagdollSystem (Object ref) | The ragdoll system of Actor: its component implementing BPI_RagdollSystem (the AC_RagdollSystem adapter on both sample pawns), else Actor itself when it implements the interface (for your own pawns), else None. Send BPI_RagdollSystem messages (RequestRagdoll, ApplyRagdollImpulse, IsRagdollActive, RequestGetUp) to the result. |
BPI_ModularSystems¶
/GASPALS/Systems/BPI_ModularSystems · parent Interface
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
InitializeModularSystems |
BPI_SandboxCharacter_Pawn¶
/GASPALS/Blueprints/BPI_SandboxCharacter_Pawn · parent Interface
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
Get_MovementModeName | ModeName (Name) | The name of the pawn's current movement mode (Mover mode names). CMC pawns return Walking, Falling, Flying, Swimming, Custom or None, or the name last passed to Set_MovementModeByName while the pawn is still in the mode it mapped to (Traversing while flying). | |
Set_GravityOverride | bOverrideGravity (Boolean), GravityAcceleration (Vector) | bHandled (Boolean) | Overrides the pawn's gravity with GravityAcceleration (cm/s2, world space; zero = no gravity) while bOverrideGravity is true; false restores the normal gravity. CMC pawns use only the Z part, as a Gravity Scale. Returns true when handled. |
Set_MovementModeByName | ModeName (Name) | bHandled (Boolean) | Switches the pawn to the movement mode named ModeName (Mover mode names: Walking, Falling, Flying, Traversing). Mover pawns queue the mode; CMC pawns map Walking to Walking, Flying and Traversing to Flying, anything else to Falling. Returns true when handled. |
Get_AimRay | Origin (Vector), Direction (Vector), Point (Vector), bHit (Boolean), Planar (Vector), TraceChannel (ETraceTypeQuery), TraceDistance (Float) | The pawn's aim ray for systems that need it (cover targeting and aim from cover): Origin, Direction, the aimed Point, whether it hit (bHit), the flattened Planar direction, and the TraceChannel / TraceDistance it uses. The sample pawns forward their AC_CameraSystem crosshair aim. A pawn without an implementation returns zeros: cover then finds no target. | |
TeleportCharacter | NewTransform (Transform), bOffset (Boolean) | bHandled (Boolean) | Moves the pawn to NewTransform, or by it when bOffset is true. Returns true when handled. |
Get_MMIAnimContexts | AnimContexts (Array of Object ref) | Anim instances of the participants of the current takedown or shove (multi-character motion matching); empty when none. | |
Get_MMIResult | Result (PoseSearchBlueprintResult) | ||
Get_PropertiesForAnimation | ReturnValue (S_CharacterPropertiesForAnimation) | ||
Get_PropertiesForCamera | ReturnValue (S_CharacterPropertiesForCamera) | ||
Get_PropertiesForRagdoll | ReturnValue (S_RagdollProperties) | ||
Get_PropertiesForTraversal | ReturnValue (S_CharacterPropertiesForTraversal) | ||
Set_CharacterInputState | Desired Input State (S_PlayerInputState) | ||
Set_IsPlayingRootMotion | IsPlayingRootMotion (Boolean) | ||
Set_PhysicsProfile | PhysicsProfile (Name) | ||
AddTarget | TargetToAdd (Actor ref) | ||
RemoveTarget | TargetToRemove (Actor ref) |
BPI_SandboxCharacter_ABP¶
/GASPALS/Blueprints/BPI_SandboxCharacter_ABP · parent Interface
Only the GASPALS additions are listed. The Game Animation Sample variables and functions of this Anim Blueprint (motion matching, trajectory, foot placement, state machine) are internal to the locomotion setup.