Skip to content

Blending

You can blend between sways, or stop a blend for a specific time. This is especially useful if you for example want to fire a weapon but don't want the blend to be active so the direction of the projectile and VFX are still correct.

Stop Sway

If you stop a sway but provide a stop duration, the sway will automatically blend back in. If you don't provide a stop duration the blend will stop until you start it again with EnableSway.

1
2
3
4
5
6
7
8
9
AYourActor::FireWeapon()
{
    WeaponSway->StopSway(0.1f, 0.2f);
}

AYourActor::EnableSway()
{
    WeaponSway->EnableSway(true);
}

stopsway enablesway