Author Topic: Strange AI behavoir... walking through walls etc to the nearest corner.  (Read 341 times)

Legacy_Tiggers.no.tail

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +0/-0


                So I have a NPC character that 'follows' the character around the different levels of the module by way of SignalEvent to move her to her correct new waypoints. However, sometimes she will start walking randomly (and fall through the floor or walk through a wall) to one of the corners of that map. Has anyone ever encountered a situation like this before. I'm wondering if there's not some kind of condition flag i can set to tell her to never move from where she gets teleported to. I'm thinking that WalkWaypoints() might have something to do with the issue. Any help would be appreciated.
               
               

               
            

Legacy_CID-78

  • Sr. Member
  • ****
  • Posts: 261
  • Karma: +0/-0
Strange AI behavoir... walking through walls etc to the nearest corner.
« Reply #1 on: July 04, 2011, 11:29:38 am »


               a NPC shouldn't beable to move anywhere the PC can't move. if you can walk through a wall or fall through a floor, it more likely a tileset issue.
               
               

               
            

Legacy_Tiggers.no.tail

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +0/-0
Strange AI behavoir... walking through walls etc to the nearest corner.
« Reply #2 on: July 04, 2011, 11:34:00 am »


               I'm not exactly *positive* that they're walking through it, but where ever they go to, the player can't see them anywhere in game anymore
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Strange AI behavoir... walking through walls etc to the nearest corner.
« Reply #3 on: July 04, 2011, 04:41:57 pm »


               With no information (code) given on how your signal event works, there is no real point at even taking a guess at this.
               
               

               
            

Legacy_La Rose Noire

  • Newbie
  • *
  • Posts: 49
  • Karma: +0/-0
Strange AI behavoir... walking through walls etc to the nearest corner.
« Reply #4 on: July 04, 2011, 05:01:19 pm »


               Do you use GetNearestObjectBytag or GetObjectByTag ?

Your NPC can target a Waypoint on another map an try to jump to it, so he walks in the map corner to reach it...

But without any code, it's hard to find...

And for your randomly walk, I suppose another script interact with yours (and it must have a ActionRadomWalk() line if NPC can't see its target).