Author Topic: Walkways across areas  (Read 389 times)

Legacy_PreyingMantis

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Walkways across areas
« on: April 02, 2011, 08:24:19 am »


               I am trying to get some NPCs to make a loop through several areas, and then back to start. 

The NPC will make it through several areas before getting 'hung up' right before transitioning through a door.  The NPC moves to the side of the door and stops.  I had some transitions to different areas that were flawless, and some the NPC walks to a random spot(not a waypoint), before turning back to the waypoints.

Is this a scripting problem or a problem in my toolset? 
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Walkways across areas
« Reply #1 on: April 02, 2011, 08:27:23 am »


               If I remember correctly you need to set the NPCs AI setting higher. If it's not high enough they won't open doors.
               
               

               
            

Legacy_PreyingMantis

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Walkways across areas
« Reply #2 on: April 02, 2011, 08:59:14 am »


               The NPC does pass through several other doors before stopping at this one. 

I was wondering if it has to do with the location of the waypoint in the next area?  I put a waypoint on each side of the transition, but was wondering if maybe the coordinates of the waypoint in the next area are causing the NPC to move away from door transition and miss going through it.

And by the NPCs AI, are you talking about just boosting the Intelligence ability on the NPCs character sheet?  Or is there a different AI for NPCs?
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Walkways across areas
« Reply #3 on: April 02, 2011, 12:29:38 pm »


               SetAILevel
               
               

               
            

Legacy_PreyingMantis

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Walkways across areas
« Reply #4 on: April 02, 2011, 04:27:23 pm »


               Thanks for the link Lightfoot.  Next question, where does the script gor the AI go?  I was looking on my NPC for it.. is it in the Userdefined or Onspawned?
               
               

               
            

Legacy_PreyingMantis

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Walkways across areas
« Reply #5 on: April 02, 2011, 09:54:54 pm »


               Okay, found the AI for the NPC and turned it up to HIGH, but NPC still won't transition to a certain area.  He has transitioned through 5 other areas before this one, but just won't open the door and go in.  

The problem door was originally locked, but he had the key-so I changed it to unlocked and still same problem.

The door was a custom door and not a standard toolet door-so I replaced it with a standard unlocked door(just like 3 of the other transitions the NPC has already made), and still same problem.

I shortened up the trip, and the # of waypoints, making this transition the second one and still same problem.

Does anyone know if crossing areas for NPCs might have anything to do with the actual 'coordinates' of the waypoints in both areas?
               
               

               
            

Legacy_PreyingMantis

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Walkways across areas
« Reply #6 on: April 04, 2011, 06:31:08 am »


               Thanks, I got it figured out.