marcrasmussen
New member
I am trying to create a custom ability that can deflect / reflect incoming projectiles however i cant seem to get it to work.
I started with a version of the shield and then added some code to change the velocity. However i can't seem to get it to work.
Could anyone please help me out?
I started with a version of the shield and then added some code to change the velocity. However i can't seem to get it to work.
Code:
public void ReverseProjectile(Vector3 newDirection)
{
m_Velocity = Vector3.Reflect(newDirection, m_OriginatorTransform.forward) * 200;
}
Could anyone please help me out?