Player pass from other characters

  • #1, von TinTinMittwoch, 30. März 2016, 16:02 Uhr vor 9 Jahren
    Hi

    I saw player passed from other NPC . It's really bad situation specially for follow another person (chase). How can I write a command for all NPC as obstacle?

    Foren Fan

    196 Posts


  • #2, von afrlmeMittwoch, 30. März 2016, 16:37 Uhr vor 9 Jahren
    It's a 2D engine so it's not that simple, but can probably be achieved in a similar manner to what I just provided you with inside of your other thread about preventing the character from walking if the player clicks too close to the character.

    Long story short, you listen out for when chasing character enters a specified radius & then you either make them stop or update their path. The latter will be fairly complicated though.

    P.S: you should actually be able to use the chase action section where you can set some actions to do if chasing character enters leader characters specified radius.

    Foren Imperator

    7285 Posts

  • #3, von TinTinMittwoch, 30. März 2016, 16:54 Uhr vor 9 Jahren
    Ok.Got it. I'm going to try to define a radius for character. I'll ask if I had some questions.
    Thanks anyway

    Foren Fan

    196 Posts