Announcement

Collapse
No announcement yet.

MeleeDamageTarget

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

    MeleeDamageTarget

    Hi- probably a complete newbie question, but I was wondering if anyone could help explain this code... nothing ever has comments explaining how it works, and MeleeDamageTarget brings up no results in the search.

    function PunchDamageTarget()
    {
    if (MeleeDamageTarget(PunchDamage, (39000 * Normal(Controller.Target.Location - Location))))

    ...yada yada...

    }


    Could anyone explain how this function's arguments are set up? I assume PunchDamage, as defined, is the damage it does to the target, but what is the next argument in it? I can't figure it out from context / other code in it.


    Thanks!


    ~S

    #2
    seems like momentum to me... it finds the direction to apply the force or 39000 or whatever it is

    Comment


      #3
      Thank you =) I didn't want to mess with it until I knew what it did, kinda, for in case it was a directional vector for the attack itself.

      Comment


        #4
        Ye ai wouldnt quote me on that... but it definitely looks like that t me

        Comment

        Working...
        X