Document : CT Cmpt Mount & CT Cmpt Rider Component
-
Video Tutorial
CT_Cmpt_Mount and CT_Cmpt_Rider should be used together
BP_Horse
->CT_Cmpt_Mount
BP_Rider
->CT_Cmpt_Rider
Smooth camera switching
If using
Spring Arm
andCamera
. theCamera
position will automatically adjust
SpringArm
->Target Arm Length
needs to be set to the same valueConfig Type Default Description Move Camera Over Time Float 0.5 smooth move Camera
timeCT_Cmpt_Rider
Function
Mount
Attach to mount chatacter and lose controller
Params Type Description MountActor Actor Character Blueprint includes CT_Cmpt_Mount
MountPoint Name Socket name to be attached Function
Dismount
Detach from current character and get controller
Function
Get Mount Character
Return
Character
Function
Get Mount Component
Return
CT_Cmpt_Mount
Function
Get Mount Point
Utility function
get a positionFind a location and rotation to play mount montage
Function
Find Direction
Utility function
Return what direction are you on the ActorFunction
Set Custom Camera
If you using custom camera (eg ALS) you need to set the camera position
CT_Cmpt_Mount
Function
Get Rider Character
Return
Character
Function
Get Rider Component
Return
CT_Cmpt_Rider
Events
CT_Cmpt_Mount
&CT_Cmpt_Rider
have same eventsEvent
OnMessageYou can use the
OnMessage
event to pass a messageFor example, want Horse and Rider to play montage at the same time
BP_Horse
BP_Rider
Event
OnMountWhen the
CT_Cmpt_Rider
->Mount
function is calledEvent
OnMountedWhen the
CT_Cmpt_Rider
->Mmount
function completesEvent
OnDismountWhen the
CT_Cmpt_Rider
->Dismount
function is calledEvent
OnDismountedWhen the
CT_Cmpt_Rider
->Dismount
function completes