Duplicate a BP Crowded Character, called character 2
open it and tick Random options in the root
Go to construction script, at the ending Disable Random Command, add follow:
double click to open Enable face update animation editor command node:
Add skeletal mesh component node:
Walking metahuman:
Role: To make event tick in construction script (coz event tick only in event graph (work in game play), not in construction script (work in editor)
Create a BP interface, called BI_EditorTick
name the function as Editor Tick, tick Call in editor
Make a rotating cube as an example:
Create a BP actor, called BP_RotateCube
Add a Cube component, and implement interface
Implement Editor Tick node to event graph:
Go to Construction script:
Back to event graph:
Apply same concept on metahuman walking:
In construction script, add walking? variable, tick instance editable
promote original location from get actor location
Add a branch after set amination mode and extend as below:
In event graph, add variable distane and max distance (default value 1000)