Slide and Crouch
On this page
1. What it does
One button, three results: with the stick pushed the hero slides (1.6 times walking speed), with the stick released it crouches (hold to crawl), in the air it is the slam (see Slam). Jump out of a slide or crouch for the higher slide jump. A spin out of a slide is the slide-spin burst.
2. Turn on / off
- Details: Corridor | Abilities > Can Slide.
- Blueprint:
Set Ability Enabled(Ability = Slide) /Is Ability Enabled. - Routes: A yes (5. Abilities > Can Slide, honoured by
Move Slide; no extra speed on a plain Character Movement - the speed multiple needs the kit's movement component or the ALS sample) - B yes - C yes. - Switched off while sliding or crouching: the slide ends and the hero stands up. Under a low ceiling the engine keeps the hero crouched until there is room; nothing gets stuck.
3. Level actor to place
None. Low passages are your own geometry.
4. Details fields
| Field | Default | What it does |
|---|---|---|
Slide Duration (SlideDuration) |
0.3 | Slide length in time. (Details: Corridor | Slide) |
Slide Speed Scale (SlideSpeedScale) |
1.6 | Slide speed as a multiple of MaxWalkSpeed. (Details: Corridor | Slide) |
Slide Post Delay (SlidePostDelay) |
0.1 | Pause after a slide before another can start. (Details: Corridor | Slide) |
Slide Stick Min (SlideStickMin) |
0.25 | Stick deflection (0-1) a slide needs; at or below CrouchStickMax the slide button crouches instead. (Details: Corridor | Slide) |
Crouch Stick Max (CrouchStickMax) |
0.2 | Stick deflection (0-1) at or below which the slide button crouches instead of sliding. (Details: Corridor | Slide) |
Slide Spin Lock (SlideSpinLock) |
0.1 | No spin for this long right after a slide starts. (Details: Corridor | Slide) |
Slide End Lock (SlideEndLock) |
0.167 | No new slide for this long after one ends; the longer of this and SlidePostDelay applies. (Details: Corridor | Slide) |
Slide Turn Lock (SlideTurnLock) |
0.4 | Turning is locked this long after a slide. (Details: Corridor | Slide) |
Slide Hit Extent (SlideHitExtent) |
(77, 90, 39) | Half extents of the slide hit box in front of the character (cm). (Details: Corridor | Slide) |
High Jump Air Accel Scale (HighJumpAirAccelScale) |
0.5 | Air acceleration multiplier during a slide/crouch high jump. (Details: Corridor | Slide) |
High Jump Velocity Scale (HighJumpVelocityScale) |
1.25 | Slide high jump launch speed vs a normal jump. (Details: Corridor | Slide) |
Slide Spin Keeps Speed (bSlideSpinKeepsSpeed) |
true | A spin started during a slide keeps the slide speed for its duration (a speed burst). (Details: Corridor | Slide) |
Crouch Height Scale (CrouchHeightScale) |
0.45 | Crouching: capsule half height x this (lower = a lower crouch). (Details: Corridor | Crouch) |
Crawl Speed (CrawlSpeed) |
193 | Walk speed while crouched (cm/s). (Details: Corridor | Crouch) |
Crouch Min Hold (CrouchMinHold) |
0.2 | A crouch lasts at least this long, even if the slide button is released sooner. (Details: Corridor | Crouch) |
Option A: Slide Duration, Slide Speed Scale on the Corridor Hero component (4. Moves).
5. Blueprint functions and events
| Node | Kind | What it does |
|---|---|---|
| Set Ability Enabled / Is Ability Enabled | Function / Getter | The switch above (Ability = Slide). |
| Get Corridor Action | Getter | Slide while sliding, Crouch while crouching or crawling. |
| On Action Started / Ended | Event dispatchers | One pair per slide or crouch. |
| Is Sliding | Getter | True during a slide. |
| Is Crouched | Getter | The engine's own node (the kit adds none). |
| On Slide Pressed / Released | Function | Call them from your own input. Option A: Move Slide. |
6. Use your own animation
Leave Anim Set empty; switch on Get Corridor Action: Slide and Crouch. Locomotion returns on On Action Ended.
7. See it in the demo
Course1_RunAndJump: the low passages. Push the stick and press Slide (K / Left Shift).
8. Pitfalls
- Stick thresholds: pushed past
Slide Stick Min(0.25) the hero slides; with the stick at or underCrouch Stick Max(0.2) it crouches. - Calling the engine's Crouch yourself still gives the slide/crouch high jump even with Slide off.
- A slide is what the kit's high speed multiple is built on: on a plain Character Movement (Option A) there is no extra slide speed.