First Person reference¶
The first-person component (on the pawn only), the per-body setup data asset, the first-person Anim Blueprint and its Control Rigs.
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 ().
AC_FirstPersonSystem¶
/GASPALS/Systems/FirstPersonSystem/AC_FirstPersonSystem · parent ActorComponent · implements BPI_FirstPersonSystem_C, BPI_CameraSystemListener_C
On the pawn only: it builds the first-person meshes of the pawn, of the active retargeted character and of the held item.
Settings¶
First Person > Arms¶
| Variable | Type | Default | Description |
|---|---|---|---|
First Person Arm Pitch Down LimitFirstPersonArmPitchDownLimit | Float | 45 | Overlay modes: degrees of downward view pitch the arms follow (rotating around the eyes) before the spine leans for the rest. Lower values lean more. |
First Person Arm Pitch Up LimitFirstPersonArmPitchUpLimit | Float | 90 | Overlay modes: degrees of upward view pitch the arms follow before the spine leans back for the rest. |
First Person > Camera¶
| Variable | Type | Default | Description |
|---|---|---|---|
First Person Camera Follow LeanFirstPersonCameraFollowLean | Float | 0.75 | Overlay modes: how much the camera follows the spine lean when looking down (0 = camera stays and the upper body shifts back, 1 = head and camera move with the lean). |
First Person Full Body ViewFirstPersonFullBodyView | Float | 1 | How much of the view pitch the arms follow before the spine takes the rest (CR_FirstPerson_AimOffset FullBodyView). Copied to ABP_FirstPerson_UEFN every update. Default 1. |
First Person Max Root Yaw LagFirstPersonMaxRootYawLag | Float | 60 | First person: max yaw (degrees) the body root may lag behind the view before it is dragged along (offset root bone). Read by the pawn's character ABP from the pawn's component. Default 60. |
First Person Camera Vertical SmoothingFirstPersonCameraVerticalSmoothing | Float | 12 | Smoothing speed of the first-person camera height (CR_FirstPerson_BodyCamera VerticalSmoothing): lower = softer bobbing and crouch transitions. Default 12. |
First Person > Debug¶
| Variable | Type | Default | Description |
|---|---|---|---|
Debug First Person MotionbDebugFirstPersonMotion | Boolean | false | Draw the first-person motion pivot and targets, and print the motion inputs. |
First Person > General¶
| Variable | Type | Default | Description |
|---|---|---|---|
First Person ModeFirstPersonMode | E_FirstPersonMode | FirstPersonOverlay | How first person looks, for every body the pawn shows (the pawn, its retargeted characters). TrueFirstPerson: third-person animation plus ADS. FirstPersonOverlay (default): first-person poses on the full-body mesh. FirstPersonOverlaySplit: arms and body meshes sharing one pose, arms use first-person scale (needs ArmsMeshes and BodyMeshes in the body's setup). A body without a Retargeter on another skeleton uses TrueFirstPerson. |
Enable First PersonbEnableFirstPerson | Boolean | true | Turns the first-person system on or off (read at start, default only). Off: FirstPerson is removed from the available perspectives and no first-person meshes are built. |
Build First Person for Non Local PawnsbBuildFirstPersonForNonLocalPawns | Boolean | false | Build first-person meshes (and keep a retargeted logic mesh ticking) on pawns that are not locally controlled too: AI, other players' pawns, pawns not yet possessed. Off by default: those meshes are only visible to the pawn's owner, so other machines and AI never show them. The meshes are built when a pawn becomes locally controlled. |
First Person > Motion¶
| Variable | Type | Default | Description |
|---|---|---|---|
First Person Motion ProfileFirstPersonMotionProfile | PDA_FirstPersonMotion ref | DA_FPMotion_Unarmed | Default first-person motion profile (look and move sway, bob, breathing, jump and landing kicks, ADS fade). An equipped item can override it with its own profile. |
First Person Motion IntensityFirstPersonMotionIntensity | Float | 1 | Scales all first-person motion: 1 = as the profile says, 0 = off (for players sensitive to motion). |
First Person > Setup¶
| Variable | Type | Default | Description |
|---|---|---|---|
Third Person Mesh NameThirdPersonMeshName | Name | The pawn's body skeletal mesh component (SkeletalMesh on the Mover pawn, CharacterMesh0 on the Character pawn). A visual override answers BPI_VisualOverride instead. Falls back to the first skeletal mesh that is not a generated first-person mesh. Sample pawns: Mover SkeletalMesh, CMC CharacterMesh0. | |
Default SetupDefaultSetup | PDA_FirstPersonSetup ref | DA_FirstPersonSetup_UEFN | The pawn's own first-person setup (PDA_FirstPersonSetup), used while no visual override is active. Default DA_FirstPersonSetup_UEFN (the UEFN mannequin). A visual override brings its own setup through BPI_FirstPersonCharacter. |
Runtime state (6 variables)
| Variable | Type | Default | Description |
|---|---|---|---|
Primitives First PersonPrimitives_FirstPerson | Array of PrimitiveComponent ref | Primitives shown to the owner only in first person (the generated first-person meshes and item copies); hidden from the owner in third person. | |
Primitives Third PersonPrimitives_ThirdPerson | Array of PrimitiveComponent ref | Primitives of the third-person body or equipment; they become WorldSpaceRepresentation in first person. | |
Third Person MeshThirdPersonMesh | SkeletalMeshComponent ref | Third-person body mesh component found by FindThirdPersonMesh. | |
First Person MeshFirstPersonMesh | SkeletalMeshComponent ref | Lead first-person mesh component; runs ABP_FirstPerson_UEFN and carries the VB Camera the camera attaches to. | |
Generated First Person MeshesGeneratedFirstPersonMeshes | Array of SkeletalMeshComponent ref | All first-person mesh components created for the active body by BuildFirstPersonMeshes (lead and followers, on the body's actor). | |
First Person Logic MeshFirstPersonLogicMesh | SkeletalMeshComponent ref | The pawn's hidden UEFN first-person mesh (SkeletalMesh_FP) that supplies the overlay pose a retargeted character retargets from; set by ConnectLogicMesh. |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
CreateItemFirstPersonCopies | Item (Actor ref) | Copies (Array of PrimitiveComponent ref) | Creates first-person copies of every static and skeletal mesh of Item (once; a second call returns the same copies) on the item actor itself (no collision, owner only, FirstPerson primitive type) and swaps them with the camera. Returns the copies, empty when first person is off or not allowed. (BPI_FirstPersonSystem) |
GetFirstPersonCameraBoneName | BoneName (Name) | The bone the camera follows in first person. (BPI_FirstPersonSystem) | |
IsFirstPersonEnabled | bEnabled (Boolean) | True when the first-person system is enabled (bEnableFirstPerson). (BPI_FirstPersonSystem) | |
IsUsingFirstPersonScale | bUsesScale (Boolean) | True when the first-person scale rig applies (FirstPersonOverlaySplit). (BPI_FirstPersonSystem) | |
OnCameraViewChanged | bFirstPerson (Boolean) | bHandled (Boolean) | Called by the camera system on the owner components that implement it after the perspective changed. (BPI_CameraSystemListener) |
RemoveItemFirstPersonCopies | Item (Actor ref) | bHandled (Boolean) | Destroys the first-person copies of Item and forgets them. Call it before destroying the item. (BPI_FirstPersonSystem) |
OnCameraPerspectiveChanged | NewCameraPerspective (E_CameraPerspective) | Camera system callback: in first person the first-person primitives show to the owner and the third-person ones turn WorldSpaceRepresentation; in third person it is the reverse. | |
CreateItemCopies | Item (Actor ref) | Copies (Array of PrimitiveComponent ref) | Creates first-person copies of every static and skeletal mesh of Item once, on the item actor itself (no collision, owner only, FirstPerson primitive type), adds them to the primitive lists and applies the current view. Returns the item's copies; empty when first person is off or not allowed. |
PruneItemCopies | Item (Actor ref) | Destroys and forgets the item copies whose source belongs to Item, and drops entries whose source is gone (with Item None, only those). | |
RemoveItemCopies | Item (Actor ref) | bHandled (Boolean) | PruneItemCopies(Item), then rebuilds the primitive lists. |
BuildFirstPersonMeshes | Creates the active body's first-person meshes from its setup's mesh lists, once per body and only for a local player's pawn (IsLocalFirstPersonOwner): finds the third-person mesh, builds the lead and followers for the mode on the body's actor, then validates the setup and initializes the primitives. | ||
ConnectLogicMesh | LogicMesh (SkeletalMeshComponent ref) | Stores the UEFN logic mesh and keeps its pose ticking: always when a retargeter is set and the pawn belongs to a local player (IsLocalFirstPersonOwner), only when rendered otherwise. | |
CreateFirstPersonCopy | Source (PrimitiveComponent ref) | Copy (PrimitiveComponent ref) | Adds a first-person copy of a static or skeletal mesh component (same mesh, anim class and materials) on the component's own actor (the held item), so items need no hand-made _FP components or rendering tags. Returns None for other primitive types. |
CreateFirstPersonMesh | Mesh (SkeletalMesh ref), bRunsFirstPersonPipeline (Boolean), bFirstPersonPrimitive (Boolean), LeaderMesh (SkeletalMeshComponent ref) | NewMesh (SkeletalMeshComponent ref) | Creates a first-person skeletal mesh attached to the third-person mesh: owner only, no shadow, materials copied. The lead runs the first-person pipeline, followers copy its pose. |
DestroyFirstPersonMeshes | Destroys the generated first-person meshes of the active body and forgets them, the third- and first-person mesh and the cached setup. | ||
FindThirdPersonMesh | Mesh (SkeletalMeshComponent ref) | The active body's mesh: BPI_VisualOverride's GetVisualBodyMesh for a visual override, else the component named ThirdPersonMeshName, else the first skeletal mesh that is not a generated first-person mesh. | |
GetVisualMeshes | ThirdPerson (SkeletalMeshComponent ref), FirstPerson (SkeletalMeshComponent ref) | Returns the third-person and the lead first-person mesh. | |
InitializePrimitives | Sorts the active body's primitives into the first- and third-person lists: its third-person mesh and the meshes attached under it are third person; generated first-person meshes go to the first-person list. The held item's meshes and copies (CreateItemCopies) are added, after dropping entries of destroyed items. Sorts the owner's primitives into the first- and third-person lists. On a character (the pawn, or a visual override child actor) the third-person mesh and the meshes attached under it are third person. Other owners (equipment) get a first-person copy of each of their meshes once. Generated first-person meshes and copies go to the first-person list. | ||
IsGeneratedFirstPersonMesh (pure) | Component (PrimitiveComponent ref) | bIsGenerated (Boolean) | True when Component is one of the first-person meshes this component generated (GeneratedFirstPersonMeshes). InitializePrimitives uses it so generated meshes are never copied again for first person. |
IsThirdPersonPrimitive | Component (PrimitiveComponent ref), ThirdPersonMesh (SkeletalMeshComponent ref) | bThirdPerson (Boolean) | True when Component is part of the third-person character: the third-person mesh itself, or a mesh component attached under it. Generated first-person meshes, first-person copies and the connected logic mesh are never third person. No component tags needed. |
RefreshLocalFirstPerson | Called when the owning pawn changes controller (and once at start): re-applies the logic mesh tick option and builds the first-person meshes when the pawn now belongs to a local player (BuildFirstPersonMeshes does nothing otherwise, or when they already exist). When this build made the lead, it re-runs the owner's InitializeModularSystems (BPI_ModularSystems), so the systems that keep the first-person mesh (equipment, camera) take the lead instead of the third-person mesh. | ||
ReleaseGeneratedComponent | Component (PrimitiveComponent ref) | Destroys a component this system generated (a first-person mesh or an item copy). Unreal lets only the owning actor or the component itself destroy a component, so the generated classes (AC_FirstPersonSkeletalMesh, AC_FirstPersonStaticMesh) destroy themselves through ReleaseFirstPersonMesh. Any other component falls back to Destroy Component. | |
SetActiveBody | Body (Actor ref), LogicMesh (SkeletalMeshComponent ref) | Makes Body (the pawn or its visual override) the first-person body. When the body changes, or its meshes are gone, destroys the previous body's generated meshes and builds Body's from its setup, on Body's actor. Always connects LogicMesh (the pawn's SkeletalMesh_FP). Called by the pawn's UpdateFirstPersonVisuals. | |
SetupFirstPersonCopy | Source (PrimitiveComponent ref), Copy (PrimitiveComponent ref) | Turn Copy into the first-person copy of Source: attached to Source, same materials, visible to the owner only (hidden until first person) and a FirstPerson primitive. | |
GetCameraStateProvider (pure) | ReturnValue (ActorComponent ref) | The owning pawn's component implementing BPI_CameraSystem, or None. | |
GetActiveSetup (pure) | Setup (PDA_FirstPersonSetup ref) | Setup of the active body, cached in CachedSetup. Never None: a body without a setup gets a default PDA_FirstPersonSetup (empty mesh lists, so its body mesh is reused with the head hidden). | |
GetEyeOffsetFor (pure) | Actor (Actor ref) | EyeOffset (Vector) | Eye offset of an actor's own setup (zero without one), for the first-person Anim Blueprint of that actor's mesh. |
GetRetargeterFor (pure) | Actor (Actor ref) | Retargeter (IKRetargeter ref) | Retargeter of an actor's own setup. The first-person Anim Blueprint asks it for its mesh's owner, so the pawn's logic mesh keeps the UEFN values while an override's lead gets the override's. |
GetSetupFor | Actor (Actor ref) | Setup (PDA_FirstPersonSetup ref) | First-person setup of a body: DefaultSetup for the pawn, else the actor's BPI_FirstPersonCharacter setup (None when it has none). |
RegisterWithCamera | bRegistered (Boolean) | Registers this component as a camera listener (BPI_CameraSystem.RegisterCameraListener). | |
ValidateSetup | Prints orange on-screen warnings for the local pawn when the active body's setup is incomplete: no setup, no body or first-person mesh, no camera or head bone, a missing retargeter (TrueFirstPerson is used then), or Split without arms and body meshes. | ||
WarnSetup | bShow (Boolean), Message (String) | Orange on-screen and log warning for 10 s, prefixed with the body's name, when bShow. | |
GetBodyActor (pure) | BodyActor (Actor ref) | The actor whose body is shown in first person: the active visual override set by SetActiveBody, else this component's owner (the pawn). | |
GetFirstPersonCameraBone (pure) | BoneName (Name) | The active setup's CameraBone, or VB Camera when it is empty. | |
GetFirstPersonHeadBone (pure) | BoneName (Name) | The active setup's HeadBone, or head when it is empty. | |
GetRetargetSetup | Retargeter (IKRetargeter ref), LogicMesh (SkeletalMeshComponent ref) | Returns the active setup's Retargeter and the logic mesh (FirstPersonLogicMesh). | |
IsCameraInFirstPerson (pure) | bFirstPerson (Boolean) | True when the camera reports the FirstPerson view (false without a camera system). | |
IsFirstPersonAvailable (pure) | bAvailable (Boolean) | True when bEnableFirstPerson is on and the pawn's camera system allows FirstPerson (AllowedPerspectives); true when there is no camera system. BuildFirstPersonMeshes, item copies and BeginPlay do nothing when it is false. | |
IsLocalFirstPersonOwner (pure) | bLocal (Boolean) | True when this component builds first-person meshes for its pawn: the pawn is controlled by a local player controller (the player on this machine), or Build First Person for Non Local Pawns is on. AI, remote players and pawns not yet possessed are not. Reads the controller, not the player state, which reaches clients later. | |
IsOnPawn (pure) | bOnPawn (Boolean) | True when this component's owner is the pawn. Only the pawn's component does anything: a copy left on a character or an item stays inert (the pawn's builds their meshes and copies). | |
UsesFirstPersonScale | bUsesScale (Boolean) | True only in FirstPersonOverlaySplit, the one mode that stacks the first-person scale camera rig. | |
UsesSplitMeshes (pure) | bSplit (Boolean) | Effective FirstPersonOverlaySplit: Split mode, not TrueFirstPerson, and the setup has ArmsMeshes. | |
UsesTrueFirstPerson (pure) | bTrueFirstPerson (Boolean) | Effective TrueFirstPerson: FirstPersonMode is TrueFirstPerson, or the body is not on the logic mesh's skeleton and its setup has no Retargeter (the overlay poses could not be retargeted to it). |
Events¶
OnOwnerControllerChanged(Pawn (Pawn ref), OldController (Controller ref), NewController (Controller ref)): custom event.
PDA_FirstPersonSetup¶
/GASPALS/Systems/FirstPersonSystem/Setups/PDA_FirstPersonSetup · parent PrimaryDataAsset
What to draw in first person for one body (one asset per body, in Systems/FirstPersonSystem/Setups).
Settings¶
First Person > Setup > Advanced¶
| Variable | Type | Default | Description |
|---|---|---|---|
Pipeline Anim ClassPipelineAnimClass | AnimInstance class | ABP_FirstPerson_UEFN | Anim Blueprint the first-person lead runs (copies the third-person pose, then camera, ADS, aim offset, motion and hand IK). Default ABP_FirstPerson_UEFN; empty = that default. |
Retarget Host Anim ClassRetargetHostAnimClass | AnimInstance class | ABP_FirstPerson_Host | Anim Blueprint for a lead whose skeleton cannot run PipelineAnimClass: it hosts the pipeline through retargeting. Default ABP_FirstPerson_Host; empty = that default. |
Mesh SuffixMeshSuffix | String | _FP | Name suffix of first-person mesh assets. Material overrides are copied from the third-person component whose mesh is the same asset, or whose mesh name plus this suffix starts the first-person mesh name. Default _FP. |
First Person > Setup > Camera¶
| Variable | Type | Default | Description |
|---|---|---|---|
Eye OffsetEyeOffset | Vector | (0, 0, 0) | Camera point relative to the HeadBone, in mesh space at the reference pose (X right, Y forward, Z up), in cm. UEFN mannequin (0, 0, 0); UE5 mannequins and MetaHumans start at (0, 12, 0). Also moves the ADS sight picture. |
Camera BoneCameraBone | Name | VB Camera | Bone or socket of the first-person lead mesh the camera attaches to. Default VB Camera: a virtual bone from root to head (add it in the Skeleton editor if the skeleton lacks it). The first-person Control Rigs place the bone named VB Camera: keep that name. |
Head BoneHeadBone | Name | head | Head bone of this skeleton: hidden when the third-person body is reused as the first-person mesh, and checked by the setup validation. Default head. The first-person Control Rigs always use the bone named head. |
First Person > Setup > Meshes¶
| Variable | Type | Default | Description |
|---|---|---|---|
Full MeshesFullMeshes | Array of SkeletalMesh ref | First-person meshes for the full-body modes (TrueFirstPerson, FirstPersonOverlay). The first entry is the lead (it runs the first-person Anim Blueprint), the rest follow it (clothing with its own skeleton keeps its post-process Anim Blueprint). Empty = the third-person body is reused as the lead with the head bone hidden. | |
Arms MeshesArmsMeshes | Array of SkeletalMesh ref | FirstPersonOverlaySplit only: the arms meshes. The first entry is the lead. Empty = Split falls back to the full-body meshes (FirstPersonOverlay). | |
Body MeshesBodyMeshes | Array of SkeletalMesh ref | FirstPersonOverlaySplit only: the body meshes without arms. They follow the arms lead and are not scaled by the first-person scale. |
First Person > Setup > Retarget¶
| Variable | Type | Default | Description |
|---|---|---|---|
Retargeter | IKRetargeter ref | IK Retargeter from the UEFN mannequin to this body's skeleton. Needed by the overlay modes on a body that is not the UEFN mannequin: the first-person overlay poses are retargeted from the pawn's UEFN logic mesh. Leave empty for the UEFN mannequin. Without it, a non-UEFN body falls back to TrueFirstPerson. |
BPI_FirstPersonSystem¶
/GASPALS/Systems/FirstPersonSystem/BPI_FirstPersonSystem · parent Interface
What other systems ask the first-person system.
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
CreateItemFirstPersonCopies | Item (Actor ref) | Copies (Array of PrimitiveComponent ref) | Creates first-person copies of every static and skeletal mesh of Item (once; a second call returns the same copies) on the item actor itself (no collision, owner only, FirstPerson primitive type) and swaps them with the camera. Returns the copies, empty when first person is off or not allowed. |
RemoveItemFirstPersonCopies | Item (Actor ref) | bHandled (Boolean) | Destroys the first-person copies of Item and forgets them. Call it before destroying the item. |
GetFirstPersonCameraBoneName | BoneName (Name) | The bone the camera follows in first person. | |
IsFirstPersonEnabled | bEnabled (Boolean) | True when the first-person system is enabled (bEnableFirstPerson). | |
IsUsingFirstPersonScale | bUsesScale (Boolean) | True when the first-person scale rig applies (FirstPersonOverlaySplit). |
BPI_FirstPersonCharacter¶
/GASPALS/Systems/FirstPersonSystem/BPI_FirstPersonCharacter · parent Interface
Implemented by a visual override (retargeted character) that has its own first-person setup.
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
GetFirstPersonSetup | Setup (PDA_FirstPersonSetup ref) | This body's first-person setup (meshes, retargeter, camera and head bone, eye offset). The pawn's first-person system builds the first-person meshes from it while this actor is the active visual override. None = reuse the body mesh with the head hidden. |
AC_FirstPersonSkeletalMesh¶
/GASPALS/Systems/FirstPersonSystem/AC_FirstPersonSkeletalMesh · parent SkeletalMeshComponent
The class of the skeletal meshes the first-person system generates (bodies, clothing, item copies), so it can release them.
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
ReleaseFirstPersonMesh | Destroys this first-person mesh. Called by AC_FirstPersonSystem (ReleaseGeneratedComponent): only the component itself or its owning actor may destroy it. |
AC_FirstPersonStaticMesh¶
/GASPALS/Systems/FirstPersonSystem/AC_FirstPersonStaticMesh · parent StaticMeshComponent
The class of the static mesh copies the first-person system generates for held items, so it can release them.
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
ReleaseFirstPersonMesh | Destroys this first-person item copy. Called by AC_FirstPersonSystem (ReleaseGeneratedComponent): only the component itself or its owning actor may destroy it. |
ABP_FirstPerson_UEFN¶
/GASPALS/Systems/FirstPersonSystem/ABP_FirstPerson_UEFN · parent AnimInstance · implements ALI_OverlayFirstPerson_C
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
Use Thread Safe Update AnimationUseThreadSafeUpdateAnimation | Boolean | true | On: Update_Values runs in the thread-safe update. Off: it runs on the game thread in the event graph. |
Runtime state (26 variables)
| Variable | Type | Default | Description |
|---|---|---|---|
First Person ADSEnter SpeedFirstPersonADSEnterSpeed | Float | 15 | Copied from the equipped item's PDA_Equipment ADSEnterSpeed (Update_ADSSettings); feeds CR_FirstPerson_ADS. |
First Person ADSExit SpeedFirstPersonADSExitSpeed | Float | 5 | Copied from PDA_Equipment ADSExitSpeed; feeds CR_FirstPerson_ADS. |
First Person ADSHand OffsetFirstPersonADSHandOffset | Vector | (0, 0, 0) | Copied from PDA_Equipment ADSHandOffset; feeds CR_FirstPerson_ADS ADS_HandOffset. |
Equipment ADSTargetEquipmentADSTarget | Transform | ADS target of the held item (BPI_EquipmentSystem.GetFirstPersonHandTargets), read by the ADS rig. | |
Equipment Hand Left TargetEquipmentHandLeftTarget | Transform | Left hand IK target of the held item, read by the hand rig. | |
Equipment Hand Right TargetEquipmentHandRightTarget | Transform | Right hand IK target of the held item, read by the hand rig. | |
Equipment Left HandedbEquipmentLeftHanded | Boolean | false | The held item is left-handed. |
Equipment Has First Person OverlaybEquipmentHasFirstPersonOverlay | Boolean | false | The held item has a first-person overlay pose; without one the overlay is disabled. |
First Person Full Body ViewFirstPersonFullBodyView | Float | 1 | How weapon overlays follow the look pitch in first person. 1 (default) = the arms rotate rigidly with the camera around the head, so the weapon stays on the crosshair and the camera stays at eye height; use with the separate first-person arms and body meshes. 0 = the old behavior: the spine bends with the pitch and the camera rides the head. Drives CR_FirstPerson_AimOffset FullBodyView. |
First Person Camera Vertical SmoothingFirstPersonCameraVerticalSmoothing | Float | 12 | Copied from the pawn's AC_FirstPersonSystem every update; feeds CR_FirstPerson_BodyCamera VerticalSmoothing. |
Parent PawnParentPawn | Pawn ref | Pawn that owns this first-person mesh; found at initialization (retries next tick until valid). | |
Parent Skeletal MeshParentSkeletalMesh | SkeletalMeshComponent ref | Third-person body skeletal mesh component of the parent pawn. | |
Parent Anim InstanceParentAnimInstance | AnimInstance ref | Anim instance of the parent pawn mesh; its Enable_HandIK curves feed the hand IK in TrueFirstPerson. | |
Equipment State ProviderEquipmentStateProvider | ActorComponent ref | The owning pawn's component implementing BPI_EquipmentSystem (cached), or None. | |
Retarget OverlaybRetargetOverlay | Boolean | false | True when a retargeter and logic mesh are set: the overlay pose is retargeted from the UEFN logic mesh (non-UEFN skeletons). |
Logic OnlybLogicOnly | Boolean | false | True when this mesh is invisible (owner only see and owner no see): it only supplies the pose and skips the procedural layer. |
First Person Logic MeshFirstPersonLogicMesh | SkeletalMeshComponent ref | UEFN first-person mesh that supplies the overlay pose to retarget from; copied from the pawn's AC_FirstPersonSystem. | |
First Person RetargeterFirstPersonRetargeter | IKRetargeter ref | IK Retargeter from the UEFN mannequin to this mesh's skeleton: the Retargeter of its owner's first-person setup (GetRetargeterFor). None on UEFN skeletons. | |
Character PropertiesCharacterProperties | S_CharacterPropertiesForAnimation | Animation properties of the parent pawn (input state, aim request), refreshed every update. | |
Disable OverlaybDisableOverlay | Boolean | false | True when no first-person overlay pose is blended in and the main mesh pose is used; set by Update_Values. |
Curve Enable CR FP Stable HeadCurve_Enable_CR_FP_Stable_Head | Float | 0 | Value of curve enable_cr_fp_stable_head: head stabilisation weight for CR_FirstPerson_Camera. |
Curve Enable CR FP Stable ArmsCurve_Enable_CR_FP_Stable_Arms | Float | 0 | Value of curve enable_cr_fp_stable_arms: arm stabilisation weight. |
Curve Enable CR FP ADSCurve_Enable_CR_FP_ADS | Float | 0 | Value of curve enable_cr_fp_ads: ADS rig weight set by the overlay animation. |
Curve Enable Hand IK LCurve_Enable_HandIK_L | Float | 0 | Value of curve Enable_HandIK_L: left hand IK weight from the overlay animation. |
Curve Enable Hand IK RCurve_Enable_HandIK_R | Float | 0 | Value of curve Enable_HandIK_R: right hand IK weight from the overlay animation. |
Controller PitchControllerPitch | Float | 0 | Control pitch in degrees, wrapped to -180..180; the base for the aim offset and head pitch values. |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
Get_FirstPersonBob (pure) | Profile (PDA_FirstPersonMotion ref) | Position (Vector), Rotation (Vector) | Bob target from the bob shape curves at the current phase, scaled by the speed curve; zero in the air. |
Get_FirstPersonBreathing (pure) | Profile (PDA_FirstPersonMotion ref) | Position (Vector), Rotation (Vector) | Breathing target: slow vertical motion and pitch. |
Get_FirstPersonLookSway (pure) | Profile (PDA_FirstPersonMotion ref) | Position (Vector), Rotation (Vector) | Look sway target: lag opposite to the view turn rate (through the look response curve), roll from yaw, clamped. |
Get_FirstPersonMoveSway (pure) | Profile (PDA_FirstPersonMotion ref) | Position (Vector), Rotation (Vector) | Move sway target: roll and side shift into strafes, pull back when moving forward, clamped. |
Update_FirstPersonMotion | Computes the motion rig inputs: sums look sway, move sway, bob and breathing from the active profile, applies the ADS, crouch, intensity and disable_fp_motion scales, and sets the spring settings and pivot. | ||
Update_FirstPersonMotionInputs | Reads what the motion needs this frame: profile, look rates and velocity, in air / crouched, breathing time, aim alpha, bob and kicks, and the disable_fp_motion curve. | ||
Update_FirstPersonMotionKicks | Bob phase (advanced by ground distance) and the one-frame jump and landing kicks from the active profile. | ||
Update_FirstPersonMotionLook | Look rates (degrees per second) from the aim rotation change, and the pawn velocity in the view yaw frame. | ||
Update_FirstPersonMotionProfile | Active motion profile: the equipped item's FirstPersonMotionProfile, else the pawn's (AC_FirstPersonSystem), and the motion intensity. | ||
GetEquipmentStateProvider | ReturnValue (ActorComponent ref) | The cached BPI_EquipmentSystem component of the owning pawn (looked up once), or None. | |
GetFirstPersonOwner (pure) | Owner (Actor ref) | Where the first-person component is looked up: ParentPawn when it is set, else the owning actor (editor previews have no pawn). | |
Update_ADSSettings | Per-weapon ADS settings from the equipped item (PDA_Equipment ADSEnterSpeed, ADSExitSpeed, ADSHandOffset) for CR_FirstPerson_ADS; keeps the last values when nothing is equipped. | ||
Update_EquipmentHandTargets | Game-thread copy of the held item's hand IK / ADS targets, handedness and overlay flag into the variables the anim graph reads. | ||
Update_FirstPersonMode | Game thread: copies the pawn's AC_FirstPersonSystem settings (one mode for every body) and this mesh's eye offset, sets bTrueFirstPerson and bFirstPersonRunADS and computes the ADS and hand IK weights. | ||
Update_PropertiesFromCharacter | Game thread: reads the pawn animation properties and the retarget setup (retargeter, logic mesh, bRetargetOverlay, bLogicOnly). | ||
Update_Values | Thread-safe: sets bDisableOverlay, the enable_cr_fp_* and hand IK curve values, ControllerPitch and the aim offset and head pitch inputs. |
CR_FirstPerson_Camera¶
/GASPALS/Systems/FirstPersonSystem/ControlRigs/CR_FirstPerson_Camera · parent ControlRig
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
Stabilize WeightStabilizeWeight | Float | 1 | |
Head PitchHeadPitch | Float | 0 | |
Eye OffsetEyeOffset | Vector | (0, 0, 0) |
CR_FirstPerson_BodyCamera¶
/GASPALS/Systems/FirstPersonSystem/ControlRigs/CR_FirstPerson_BodyCamera · parent ControlRig
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
Vertical SmoothingVerticalSmoothing | Float | 12 |
CR_FirstPerson_ADS¶
/GASPALS/Systems/FirstPersonSystem/ControlRigs/CR_FirstPerson_ADS · parent ControlRig
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
Is ADSbIsADS | Boolean | false | |
Is Left HandedbIsLeftHanded | Boolean | false | |
ADS Speed EnterADS_Speed_Enter | Float | 15 | |
ADS Speed ExitADS_Speed_Exit | Float | 5 | |
ADS WeightADS_Weight | Float | 0 | |
Eye OffsetEyeOffset | Vector | (0, 0, 0) | |
ADS Hand OffsetADS_HandOffset | Vector | (0, 0, 0) |
CR_FirstPerson_AimOffset¶
/GASPALS/Systems/FirstPersonSystem/ControlRigs/CR_FirstPerson_AimOffset · parent ControlRig
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
Controller PitchControllerPitch | Float | 0 | |
Full Body ViewFullBodyView | Float | 0 | |
Arm PitchArmPitch | Float | 0 | |
Spine PitchSpinePitch | Float | 0 | |
Head Before LeanHeadBeforeLean | Vector | (0, 0, 0) | |
Arm Pitch Down LimitArmPitchDownLimit | Float | 45 | |
Arm Pitch Up LimitArmPitchUpLimit | Float | 90 | |
Camera Follow LeanCameraFollowLean | Float | 0.75 | |
Eye OffsetEyeOffset | Vector | (0, 0, 0) |
EUB_SplitFirstPersonMesh¶
/GASPALS/Systems/FirstPersonSystem/Tools/EUB_SplitFirstPersonMesh · parent EditorUtilityObject
Settings¶
| Variable | Type | Default | Description |
|---|---|---|---|
Source MeshSourceMesh | SkeletalMesh ref | Skeletal mesh to split into an arms mesh and a body mesh. | |
Arms TargetArmsTarget | SkeletalMesh ref | Skeletal mesh asset that receives the arms only. Leave empty to skip it. | |
Body TargetBodyTarget | SkeletalMesh ref | Skeletal mesh asset that receives the body without arms and head. Leave empty to skip it. | |
Arm Root BonesArmRootBones | Array of Name | clavicle_l, clavicle_r | Root bones of the arm hierarchies (for example the clavicles); these bones and all their children count as arm. |
Head Root BonesHeadRootBones | Array of Name | neck_01 | Root bones of the head hierarchy (for example neck_01); these bones and all their children count as head and are removed from the body mesh. |
Runtime state (8 variables)
| Variable | Type | Default | Description |
|---|---|---|---|
Src MeshSrcMesh | DynamicMesh ref | Dynamic mesh copy of SourceMesh used for all queries. | |
Work MeshWorkMesh | DynamicMesh ref | Dynamic mesh copy that WriteSplit edits before writing it to a target. | |
Arm BonesArmBones | Array of Integer | Bone indices of the arm root bones and all their children. | |
Head BonesHeadBones | Array of Integer | Bone indices of the head root bones and all their children. | |
Vertex ClassVertexClass | Array of Integer | Per vertex class from its largest bone weight: 0 body, 1 arm, 2 head. | |
Arms DeleteArmsDelete | Array of Integer | Triangle indices removed to produce the arms mesh. | |
Body DeleteBodyDelete | Array of Integer | Triangle indices removed to produce the body mesh. | |
Extra LODsExtraLODs | Array of Integer | LOD indices above 0 removed from a target after writing, so it keeps LOD 0 only. |
Functions¶
| Function | Inputs | Outputs | Description |
|---|---|---|---|
WriteSplit | Target (SkeletalMesh ref), DeleteTriangles (Array of Integer) | Copies SrcMesh, deletes the given triangles and writes the result into Target, then removes its extra LODs. Does nothing when Target is empty. |