First person system¶
GASPALS first person shows the character's own body from its eyes, not floating arms. One component on the pawn generates the first-person meshes at runtime for whatever body the player sees: the pawn's own mannequin, the active retargeted character and the held item. What to draw for each body comes from a small data asset, so you never add or tag first-person components by hand. On top of the third-person pose, a first-person Anim Blueprint adds a stable camera, first-person arm poses, aim down sights (ADS) and an arm aim offset.
| Folder | /GASPALS/Systems/FirstPersonSystem |
| Component | AC_FirstPersonSystem (on the pawn only) |
| Modes | Data/E_FirstPersonMode: TrueFirstPerson, FirstPersonOverlay, FirstPersonOverlaySplit |
| Generated meshes | AC_FirstPersonSkeletalMesh, AC_FirstPersonStaticMesh (created at runtime, never added by hand) |
| Body setup | Setups/PDA_FirstPersonSetup (class); Setups/DA_FirstPersonSetup_UEFN (the pawns), _Manny, _Quinn, _Kellan |
| Interfaces | BPI_FirstPersonSystem (asked by other systems), BPI_FirstPersonCharacter (a character's setup) |
| Anim Blueprint | ABP_FirstPerson_UEFN (and the template ABP_FirstPerson_Host for meshes on other skeletons) |
| Control Rigs | ControlRigs/: CR_FirstPerson_BodyCamera, CR_FirstPerson_Camera, CR_FirstPerson_ADS, CR_FirstPerson_AimOffset, CR_FirstPerson_Motion |
| Motion profiles | Motion/PDA_FirstPersonMotion (class); Motion/DA_FPMotion_Unarmed, _Pistol, _Rifle, _Bow, _Heavy |
| Overlays | ABP_OverlayFirstPerson_Base and its children (Rifle, Pistol2H, Pistol1H, Bow) |
| Camera rigs | CameraRig_FP_Base, CameraRig_FP_Scale (Split mode) |
| Tools | Tools/EUB_SplitFirstPersonMesh (cut a mesh into arms and body) |
| Settings | First person reference |
Press 1 (next perspective) until the view is in first person; by default it comes after third person, top-down and side-scroller (see Controls). First person must be in the camera's Allowed Perspectives and Enable First Person must be on; otherwise the component builds nothing (Choosing the perspectives).
Modes¶
Set First Person Mode on the pawn's AC_FirstPersonSystem. It applies to every body the pawn shows, including the retargeted characters.
First-person arm poses on the full body: the classic shooter look while keeping legs and shadow. Looking down, the arms follow the view pitch up to First Person Arm Pitch Down Limit (45 degrees) and the spine leans for the rest; the camera follows the lean by First Person Camera Follow Lean (0.75).
One full-body mesh (plus clothing). Bodies on another skeleton than the UEFN mannequin need a Retargeter in their first-person setup.
The same image, but arms and body are separate meshes sharing one pose. The camera director adds CameraRig_FP_Scale, which draws the arms and the weapon at 0.25 scale toward the camera, so they do not clip into walls. The image looks the same; only depth changes.
Needs Arms Meshes and Body Meshes in the body's first-person setup. A body whose setup has no Arms Meshes uses FirstPersonOverlay instead, and an on-screen warning says so. All shipped setups have both.
The third-person animation seen from the eyes, unchanged, plus ADS while aiming. The head is pitched by the view. No first-person overlay poses.
Needs no retargeter and no UE-standard spine names (see Skeleton requirements). A body on another skeleton whose setup has no Retargeter uses this mode automatically, whatever the pawn's mode, and an on-screen warning says so. Weapons can clip into walls.
How it works¶
Body setup¶
What to draw for a body is a PDA_FirstPersonSetup data asset (in Systems/FirstPersonSystem/Setups):
| Field | Use |
|---|---|
| Full Meshes | Meshes for FirstPersonOverlay and TrueFirstPerson. The first entry is the lead, the others (clothing, hair) follow it. Empty = the third-person body is reused with the head hidden. |
| Arms Meshes / Body Meshes | Meshes for FirstPersonOverlaySplit. |
| Retargeter | IK Retargeter from the UEFN mannequin to this body's skeleton. Empty for the UEFN mannequin. |
| Eye Offset | Camera point relative to the head bone. |
| Camera Bone / Head Bone | VB Camera / head by default. |
Each body names its setup:
- The pawn: Default Setup on
AC_FirstPersonSystem(DA_FirstPersonSetup_UEFNon both sample pawns). Its body mesh is the component named by Third Person Mesh Name. - A retargeted character: its First Person Setup variable (
DA_FirstPersonSetup_Manny,_Quinn,_Kellan), returned byGetFirstPersonSetup(BPI_FirstPersonCharacter). Its body mesh comes fromGetVisualBodyMesh(BPI_VisualOverride), which returns theSkeletalMeshcomponent onBP_RetargetedCharacter_Base.
A character without a setup still works: its body mesh is reused as the first-person mesh with the head hidden, and a warning is shown.
Mesh generation¶
When the pawn initializes its systems, it tells AC_FirstPersonSystem which body is active: the retargeted character when one is shown, else the pawn itself. The component then builds the first-person meshes of that body from its setup:
- Overlay and true modes: the first entry of Full Meshes becomes the lead mesh: it runs the first-person Anim Blueprint. The other entries follow it.
- Split mode: the first Arms Meshes entry is the lead; the other arms meshes and all Body Meshes follow.
- Empty lists: the third-person mesh is reused as the lead, with the head bone hidden.
The meshes are created on the body's actor, so a retargeted character's first-person meshes go away with it. When the character changes (M), the previous body's first-person meshes are removed and the new body's are built.
Generated meshes use two small component classes, AC_FirstPersonSkeletalMesh and AC_FirstPersonStaticMesh (item copies of static meshes). They are plain mesh components that can remove themselves: Unreal only lets a component be destroyed by its own actor or by itself, and the first-person system is a different component. If you create first-person meshes of your own, remove them from the actor that owns them.
Every generated mesh is attached to the third-person mesh, visible to the owning player only, casts no shadow and only animates when rendered. Material overrides are copied from the matching third-person component (same mesh, or a mesh named <Name>_FP...). Followers that have their own skeleton and post-process Anim Blueprint (the MetaHuman hoodie and shoes) keep that Anim Blueprint, which copies the lead's pose and drives their corrective bones; other followers use leader pose.
When the camera switches perspective, the component swaps visibility: in first person the first-person meshes show for the owner and the third-person meshes become world-space representations (other players and shadows still see them).
The first-person pose¶
ABP_FirstPerson_UEFN runs on the lead mesh:
flowchart TD
A[Copy pose from the third-person mesh] --> B[CR_FirstPerson_BodyCamera<br>VB Camera follows the body head]
B --> C{Overlay?}
C -->|TrueFirstPerson, montage, no overlay| E
C -->|overlay modes| D[First-person overlay from spine_03 up<br>retargeted from the UEFN logic mesh if needed]
D --> E[CR_FirstPerson_Camera<br>stable head, camera at the eyes]
E --> F[CR_FirstPerson_ADS<br>hands to the sight line when aiming]
F --> G[CR_FirstPerson_AimOffset<br>arms follow the view, spine leans]
G --> M[CR_FirstPerson_Motion<br>hand and item sway]
M --> H[Hand IK] - Copy the third-person pose (all locomotion, montages and overlays come along).
- Body camera:
VB Camerafollows the body's head, smoothed vertically, so the view follows crouches, traversal and landings. That is why first person needs no crouch camera offset. - Overlay: the first-person arm pose (
ALI_OverlayFirstPerson) replaces the upper body fromspine_03. On other skeletons it is retargeted from the pawn's hidden UEFN first-person logic mesh with the setup's Retargeter. - Camera rig: keeps the head stable, puts the head at its reference rotation (plus the view pitch) and places
VB Cameraat the eyes (the setup's Eye Offset). - ADS: while aiming, the hands move so the item's
ADSsocket sits on the sight line in front of the eye. The blend speeds and a hand offset come from the equipped item (ADSEnter Speed, ADSExit Speed and ADSHand Offset on itsPDA_Equipmentdata asset, category Equipment > ADS). - Aim offset: the arms rotate with the view pitch up to the limits; the spine takes the rest.
- Motion:
CR_FirstPerson_Motionsways the hands and the item (see Hand and item motion). - Hand IK keeps the hands on the item's grips.
In first person, AC_CameraSystem attaches the camera to the lead mesh's Camera Bone (VB Camera by default).
Equipment in first person¶
Equipment actors (BP_Equipment_*) only carry their third-person meshes, with no first-person component. When an item is equipped, the equipment system asks the pawn's first-person system for first-person copies (CreateItemFirstPersonCopies on BPI_FirstPersonSystem). Each copy uses the same mesh and anim class, belongs to the item actor, is attached to its source, is visible to the owner only and has no collision. The equipment system attaches the copies to the first-person hand socket. In third person the copy is hidden; in first person it shows and the original becomes a world-space representation. Before the item is destroyed, the equipment system removes its copies (RemoveItemFirstPersonCopies).
Turn Create First Person Copy off on an item's PDA_Equipment data asset to give it no first-person copy. A pawn without AC_FirstPersonSystem still holds items in third person.
On a body (the pawn or a retargeted character), the third-person mesh and every mesh attached under it count as the third-person body, so no component tags are needed anywhere.
Overlays¶
First-person overlay Blueprints (ABP_OverlayFirstPerson_<Item>) are linked by the equipment system from the item's data asset (Overlay Pose FP). They hold first-person arm poses and curves for the first-person rigs (enable_cr_fp_stable_arms, enable_cr_fp_stable_head, enable_cr_fp_ads, enable_cr_fp_aimoffset, hand IK). Rifle, Pistol2H, Pistol1H (revolver) and Bow have one; items without one show the third-person overlay in first person.
Hand and item motion¶
On top of the first-person pose, the hands and the held item move with the player: they lag behind view turns, lean into strafes, bob with the steps, breathe at rest and take a jolt on jumps and landings. While aiming down sights the motion fades so the sight stays steady. The camera never moves.
- The rig
CR_FirstPerson_Motion(inABP_FirstPerson_UEFN, after the aim offset and before the hand IK) moves both arms and the item together around a point in front of the eyes, with springs. The left hand stays on two-handed items. - The values come from motion profiles (
PDA_FirstPersonMotiondata assets in/GASPALS/Systems/FirstPersonSystem/Motion): the equipped item's First Person Motion Profile, else the pawn's. Four ship with the template: Unarmed, Pistol, Rifle and Heavy. - On the pawn's
AC_FirstPersonSystem(First Person > Motion): First Person Motion Profile (the default,DA_FPMotion_Unarmed) and First Person Motion Intensity (1; 0 turns the motion off); Debug First Person Motion is under First Person > Debug. - A curve
disable_fp_motion(0 to 1) in an animation the character plays (a montage, for example) pauses the motion while it is above 0. - It works in all three modes and on retargeted characters. It is local only: other players don't see first-person meshes, and shots and the crosshair use the camera, so the motion never changes where shots go.
Recipes and the full setting list: Tune first-person motion.
Configuration¶
How first person behaves is set once, on the pawn's AC_FirstPersonSystem (under FirstPerson in the Details panel), and applies to every body:
| Setting | Category | Use |
|---|---|---|
| First Person Mode | First Person > General | See Modes. |
| Enable First Person | First Person > General | Off: FirstPerson is removed from the available perspectives and no first-person meshes are built. Read at start. |
| Default Setup | First Person > Setup | The pawn's own PDA_FirstPersonSetup (DA_FirstPersonSetup_UEFN for the UEFN mannequin). |
| Third Person Mesh Name | First Person > Setup | The pawn's body Skeletal Mesh Component to copy from (SkeletalMesh on the Mover pawn, CharacterMesh0 on the CMC pawn; empty in the class default). Empty or not found: the first Skeletal Mesh Component that is not a generated first-person mesh. |
| First Person Arm Pitch Down Limit / Up Limit | First Person > Arms | Degrees the arms follow the view before the spine leans (45 / 90). |
| First Person Camera Follow Lean | First Person > Camera | How much the camera follows the spine lean looking down (0 stays, 1 follows; 0.75). |
| First Person Full Body View | First Person > Camera | How much of the view pitch the arms follow before the spine takes the rest (1). |
| First Person Camera Vertical Smoothing | First Person > Camera | How quickly the camera height follows the body (12; lower = softer crouches and landings). |
| First Person Max Root Yaw Lag | First Person > Camera | Degrees the body may lag behind the view before it turns (60). |
| First Person Motion Profile / Intensity | First Person > Motion | See Hand and item motion. |
| Debug First Person Motion | First Person > Debug | Draws the motion pivot and targets and prints the motion inputs on screen (false). |
The settings are read from the pawn's component, so set them on the AC_FirstPersonSystem component of both sample pawns (SandboxCharacter_Mover and SandboxCharacter_CMC), or on each pawn you use. All settings are listed in the First person reference.
What to draw is set per body, in its PDA_FirstPersonSetup asset:
| Field | Category | Use |
|---|---|---|
| Full Meshes | First Person > Setup > Meshes | Meshes for the overlay and true modes. First = lead. Use headless meshes when you have them. |
| Arms Meshes / Body Meshes | First Person > Setup > Meshes | Meshes for the Split mode. |
| Retargeter | First Person > Setup > Retarget | IK Retargeter from the UEFN mannequin to this skeleton. Needed by the overlay modes on non-UEFN skeletons; without it the body uses TrueFirstPerson. |
| Eye Offset | First Person > Setup > Camera | Camera point relative to the head bone, in mesh space at the reference pose (X right, Y forward, Z up, cm). UEFN (0,0,0); Manny, Quinn, Kellan (0,12,0). |
| Camera Bone | First Person > Setup > Camera | Bone the first-person camera attaches to (VB Camera). |
| Head Bone | First Person > Setup > Camera | Head bone, hidden when the third-person mesh is reused as the lead, and the reference for the eye offset and ADS (head). |
| Pipeline Anim Class (advanced) | First Person > Setup > Advanced | Anim Blueprint of the lead mesh (ABP_FirstPerson_UEFN). Replace it with a child to extend the first-person pipeline. Empty = default. |
| Retarget Host Anim Class (advanced) | First Person > Setup > Advanced | Anim Blueprint used when the pipeline class cannot run on the lead's skeleton (ABP_FirstPerson_Host). Empty = default. |
| Mesh Suffix (advanced) | First Person > Setup > Advanced | Suffix that pairs a first-person mesh with its third-person component for material copies (_FP). Empty = _FP. |
For retargeted characters, duplicate DA_FirstPersonSetup_Manny and set it as the character's First Person Setup (see Add a retargeted character). Recipes are in Configure first person.
Skeleton requirements¶
- A
VB Cameravirtual bone fromroottohead(add it in the Skeleton editor: right-clickroot> Add Virtual Bone >head, then rename itVB Camera). The retargeter does not animate virtual bones, so GASPALS writes it from the body's head inCR_FirstPerson_BodyCamera. Camera Bone in the setup can name another bone, but the first-person Control Rigs place the bone namedVB Cameraat the eyes, so keep that name when you can. - A
headbone. Head Bone in the setup changes which bone is hidden and checked, but the first-person Control Rigs still usehead. - For the overlay modes: UE-standard spine, clavicle and neck names (
spine_01..spine_05,clavicle_l/r,neck_01). - The UE5 mannequin and MetaHuman skeletons shipped with GASPALS have all of these.
Missing pieces are reported on screen for the local player, in orange, starting with GASPALS First Person (<body name>). See Troubleshooting.
Cover, traversal and ragdoll in first person¶
- Cover: sticky cover switches to third person by default; auto cover gives wall-hug movement while the body follows the camera. See Cover system.
- Traversal: during a traversal move in first person, the view turns toward the obstacle when it is more than 15 degrees off (First Person Traversal Turn Speed and First Person Traversal Turn Threshold on
AC_TraversalLogic; see Traversal system). - Ragdoll: the camera switches to Camera Perspective During Ragdoll (
ThirdPersonby default) while the character ragdolls and back afterwards, when that view is allowed (see Ragdoll camera).
Using first person from Blueprints¶
Other systems talk to the pawn's AC_FirstPersonSystem through BPI_FirstPersonSystem (call the interface function on the component; no cast needed):
| Function | Use |
|---|---|
IsFirstPersonEnabled | True when Enable First Person is on. |
GetFirstPersonCameraBoneName | The bone the camera follows in first person. |
IsUsingFirstPersonScale | True in FirstPersonOverlaySplit (the arms scale rig applies). |
CreateItemFirstPersonCopies / RemoveItemFirstPersonCopies | First-person copies of a held actor's meshes; remove them before destroying the actor. The equipment system already does this for its items. |
To know whether the camera is in first person, ask the camera system (see Using the camera from Blueprints). A visual override that is not a child of BP_RetargetedCharacter_Base gives its first-person setup by implementing BPI_FirstPersonCharacter (GetFirstPersonSetup) and its body mesh by implementing BPI_VisualOverride (GetVisualBodyMesh).
Networking¶
First-person meshes exist only for the owning player's view; other players see the third-person character. The camera perspective is sent to the server, so the server knows which representation the owner uses. Nothing else in the first-person pipeline replicates.
Limitations¶
TrueFirstPerson: weapons can clip into walls (no first-person scale), and the weapon follows the third-person aim with a frame of delay.FirstPersonOverlaySplit: the body is not scaled, so it receives the hidden third-person body's shadow.EUB_SplitFirstPersonMeshgives a usable first cut; hand-authored arm and body meshes look cleaner, especially with dense clothing.- Only the rifle, pistol, revolver and bow have first-person overlay poses.
- Cost: the first-person Anim Blueprint copies and re-poses a full body. One extra IK retarget runs for the overlay on retargeted characters.