Skip to content

JDSherbert/Unreal-Engine-Networked-Sprint-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

image

Unreal Engine Networked Sprint Component

Stars Badge Forks Badge Watchers Badge Issues Badge


Unreal Engine Template License




Overview

This is a replicated sprint component that leverages the enhanced input system for bindings and input action definitions. The sprint component is designed to be easily integrated into your Unreal Engine projects, providing a replicated sprint functionality that synchronizes across the network.

To use this SprintComponent, attach it to an ACharacter. It works by binding the defined Enhanced Input Action to a function, which modifies the walkspeed value contained within the CharacterMovementComponent (which normally exists by default on ACharacter class objects.) We make sure this occurs across a network by using an RPC (Remote Procedural Call), and the GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) function.

Feel free to tweak the values in the script, I've made them easy to find in the .cpp file, inside a namespace! The code is commented well and transient/autopopulated variables are marked as such.


About

Replicated Sprinting Component for Unreal Engine game projects. Utilizes Enhanced Input System plugin for input action definitions/bindings.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages