Projectile deflect / reflect

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.

Code:
      public void ReverseProjectile(Vector3 newDirection)
        {
            m_Velocity = Vector3.Reflect(newDirection, m_OriginatorTransform.forward) * 200;
        }

Could anyone please help me out? :)
 
Due to our support load we are not able to help with custom scripts but I recommend placing a breakpoint in the move method of the trajectory object to understand the logic. This should give you a better idea on how to add any new features.
 
Top