movement of the npc character along the route

  • #1, by red363Wednesday, 10. March, 19:43 A month ago
    Greetings.
    There was a problem that I can't solve. I need to make the npc character move from point 1 to point 2. And upon reaching point 2, he returns to point 1. And so it is constantly (like patrolling). Is it possible to somehow implement it? Thank.

    Newbie

    8 Posts


  • #2, by esmeraldaWednesday, 10. March, 22:16 A month ago
    There is an action part called "jump to action part". With that you can create a loop.

    You could create a "called by other action" action and add the movement actions, then jump to the 1. action part. Call this action whenever the patrolling should start

    send character "npc" to position 1 and wait
    send character "npc" to position 2 and wait
    jump to action part #1

    kill the loop by action "quit action" or wrap the "jump" action inside an if query and change the condition to stop the loop.

    Great Poster

    420 Posts

  • #3, by red363Thursday, 11. March, 01:22 A month ago
    There is an action part called "jump to action part". With that you can create a loop.

    You could create a "called by other action" action and add the movement actions, then jump to the 1. action part. Call this action whenever the patrolling should start

    send character "npc" to position 1 and wait
    send character "npc" to position 2 and wait
    jump to action part #1

    kill the loop by action "quit action" or wrap the "jump" action inside an if query and change the condition to stop the loop.
    Thank you very match!

    Newbie

    8 Posts

Write post