enemy kicking the player

emojiemoji Member, BASIC Posts: 66

Hi all, so I have this issue that needs some input. what I want to do is have my enemy punch or kick my player & a few other actions once it is in close distance. I don't know how to do this. I was able to have my enemy punch my player only once
what attribute or other action can I do to have my enmy keep on punching or kicking my player? btw that attribute is distanceToPlayer and vector

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You would use the Magnitude Function to determine the distance between actors, here is a tutorial:

  • emojiemoji Member, BASIC Posts: 66

    sorry, I think my question was not well asked. I know the magnitude and vectorToAngle. I just want to know now that all my attribute is meet how can I have my enemy keep on attacking my player. punch, kick...

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @emoji said:
    I just want to know now that all my attribute is meet how can I have my enemy keep on attacking my player. punch, kick...

    When attribute = ______
         Timer every ___ seconds
              Punch
              Kick

Sign In or Register to comment.