Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Changing a Weapons Firing Vector

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing a Weapons Firing Vector

    I extended the UTPawn class to modify the camera, giving me a top down persepective, and I'm trying to change the fire vector of weaponry so that it shoots straight from the player parallel to the ground, but I've not been able to find what code controls the vector of weapon fire. By default, it seems to be firing to the camera crosshair. I was hoping someone could point me in the right direction.

    Thanks, all help is greatly appreciated!

  • #2
    You might only need to change GetPlayerViewPoint() in your Controller class... If that doesn't do it, just start tracing it back from your weapon's firing functions.

    Comment


    • #3
      Well, Chris2009 posted a solution that worked for me over in this thread. I just put that GetAdjustedAimFor function into my extended PlayerController class, and it worked like a charm.

      Thanks both of you for the quick help!

      Comment

      Working...
      X