The Black Wyrm's Lair - Forums

Mod development resources & discussion => The Gathering Hall => Topic started by: Baronius on October 29, 2004, 11:08:34 PM

Title: Disappearing creatures
Post by: Baronius on October 29, 2004, 11:08:34 PM
I've known this problem for a long time. In BG2 sometimes creatures "disappeared" in walls and then appeared again usually if you have gone to the wall from a certain direction...

Now I've encountered the problem during mod development. I was testing an area with enemies in it, a mine with narrow tunnels. I ran to two enemies, they attacked me but I ran away (I drank Oil of Speed). They tried to follow me but then stopped (this is normal so far).

When I have wanted to return to the point where they have attacked me, I (successfully) encountered them at a narrow tunnel -- but only one of them was displayed and only this could be killed! The other was also there but "in the wall". Actually not in the wall, but in a position where it could get my character stuck without noticing him (if my character had noticed him, the battle would have begun so the enemy could have been killed to free the path). But no, my character(s) kept trying to move but they were moving in one place because the "invisible" enemy's position prevented us in our path, it took our path.

The area's narrow paths should've been made wider while creating the area, right? There is no better solution, is it?
I thought of a CLUAConsole command which summons a wizard who offers you to ForceSpellPoint() some fireballs to certain points of the area -- so it would be RPGish but this idea is lame...



[Although it happened twice, I forgot to take a screenshot when I was really stuck.  The example screenshots show the places where I was stuck, trying to make a model of the real situation.]
Title: Disappearing creatures
Post by: Baronius on October 29, 2004, 11:25:13 PM
[Other possible place for an enemy to "hide"]
Title: Disappearing creatures
Post by: SimDing0 on October 29, 2004, 11:36:42 PM
As mentionned in chat, I think it's when creatures get stuck behind search squares (is it heavy obstacles that both prevent movement and obscure view?), which is why it tends to happen more often in doors. I'm not aware of any solution, however.
Title: Disappearing creatures
Post by: igi on October 30, 2004, 09:08:51 AM
Yeah, I'd hazard a guess it's because the square the enemy is on isnt "visible" from the square the player is on.