Aller au contenu

Photo

Strange AI behavoir... walking through walls etc to the nearest corner.


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Tiggers.no.tail

Tiggers.no.tail
  • Members
  • 41 messages
 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.

#2
CID-78

CID-78
  • Members
  • 1 124 messages
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.

#3
Tiggers.no.tail

Tiggers.no.tail
  • Members
  • 41 messages
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

#4
Lightfoot8

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

#5
La Rose Noire

La Rose Noire
  • Members
  • 25 messages
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).