In this post we will look at how to import the Advanced Locomotion System which is a great, free asset available in Unreal marketplace. It’s a great starting point for many projects but if you’ve already done some work, you may want to integrate it into your project instead.
The overview and the steps of this post can be found in this YouTube video:
First step is to create a new project using this asset, you should do this with a version that (closely) matches with your one. Note that this is not always possible and its worth checking if the asset is still compatible. e.g. 4.27 version of the package appeared to work with 5.0EA without visible issues – though I did not do extensive tests.
Open up the demo project and inside the content
folder identify the main directory with all content – in this case AdvancedLocomotionV4
.
Then you want to right click this folder and click migrate
.
Once clicked, you will be prompted with all the things you wish to migrate. For simplicity select all and click ok.
Next select where you want to migrate to. In this case, I created new separate project called ArenaV1
and will place this migrated content into the Content
directory.
while you’re here, you will want to take note of several details, including Game mode
settings and Game engine input settings
.
Find it quickly by using search and open.
Simply take a screenshot of it for your reference, or use one in here (just note it may become out of date eventually).
Now find the project settings by clicking edit -> project settings
On the left hand side, locate the input
and select it
Once in this menu, you will want to take note of the mappings here and the keys
You will want to match them inside your project (or edit them as per your requirements).
Ok now you can close this project and open up your existing one.
Modify project settings
Now that you’re inside your main project, you should be able to find the imported Advanced Locomotion
files. Open the folder and you should find the Levels
directory – open this up for testing.
If you try and play now, you will find that motion may not behave as expected, depending on the input settings of your project – so let’s fix them up first.
Follow the steps above to get to the input settings
of your project (edit-> project settings -> input
).
Now add/edit all the ones you need here in your project, matching the ones from Advanced Locomotion project. Note the key input _can_ be different, but the method names have to match – if you want them to be renamed, you will need to modify the blueprints to match.
That’s it, you can start using this in your project!
Click play to test it out. Note that this does not work by default with networking enabled.
In the near future I will attempt to make this network enabled and share the steps to achieve it!