NPC Road

  • #1, by gokutaFriday, 30. June 2017, 00:05 7 years ago
    Hi, i'm new using Visionaire so i hope some help smile

    How i can make a NPC walk from 'x' position to 'y' position , return to 'x' and again walk to 'y' continuosly ?

    Thanks, and sorry for my bad english.

    Newbie

    2 Posts


  • #2, by ke4Friday, 30. June 2017, 00:13 7 years ago
    You could set up a loop like this:

    1 Send character to position
    2 Wait until character stops
    3 Send character to position
    4 Wait until character stops
    5 Jump to actionpart #1

    No scripting required.

    Key Killer

    810 Posts

  • #3, by gokutaFriday, 30. June 2017, 00:31 7 years ago
    Thanks !!, it works perfectly.  Now i have new question:

    It's possible to make NPC stop if it the Character collides with him?

    Newbie

    2 Posts

  • #4, by afrlmeFriday, 30. June 2017, 01:55 7 years ago
    Thanks !!, it works perfectly.  Now i have new question:

    It's possible to make NPC stop if it the Character collides with him?
    Yes, but it's a bit more complicated as you need scripting to check if the character enters a radius that you define for the npc. There's a script I wrote a while ago that you could edit for this purpose here. It needs some edits though as it's currently for checking if mouse cursor is inside of a specified radius, but it shouldn't be too hard to modify - it's late here at the minute though & I've not got my thinking cap on. Sorry.

    Imperator

    7278 Posts