Shooting functions - Line Tracing

icon picker
Simple Aim Offset



Create Aim Offset 1D, choose Mannequin skeleton
Name as MyAimOffSet Blend space 1D
image.png
Set horizontal axis as:
image.png
Additive Settings choose Idle rifle pose
image.png


Create Idle Rifle post for 3 directions (forward, up, down)


Duplicate the Idle Rifle Hip anim sequence, rename as AO AimForward
image.png
Open it, R click on 1st frame, then remove from frame 1 to 190
image.png
R click again, remove frame 1 to 2 (be sure only keep 1st frame)
image.png
Select below at Additive setting
image.png

Duplicate the Foward anim sequence, rename as Aim Up this time
Remove frame 1 to 2 again
image.png
Go to skeleton tree, spine 02, rotate 60 degree, click +Key (top menu)
image.png
Repeat the same to create Aim Down

Open MyAimOffset Blend space 1D
Put Forward in centre, up in right, and down in left pitch timeline
image.png

Go to Anim BP (i used Strafe movement one), if not created before, make one and set as below:
image.png
My Strafe movement BP:
image.png
Go to Anim Graph, add aim offset node below, promote pitch variable:
P.S. Don’t add Slot defautslot node if having the projectile bullet BP set before
image.png
Back to event graph, add follow:
image.png


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.