Blocked Terrain
How do I prevent a NPC from going into blocked terrain?
How can i make something like this:
[code:1]
....
if(IsFreePosition(....))
{
m.Move(Location.Up);
}
....
[/code:1]
Without this my NPCs keep walking into walls, Water, Hills, etc.....
whats the best thing to use in this case? :?: :?: :?:
How do I prevent a NPC from going into blocked terrain?
How can i make something like this:
[code:1]
....
if(IsFreePosition(....))
{
m.Move(Location.Up);
}
....
[/code:1]
Without this my NPCs keep walking into walls, Water, Hills, etc.....
whats the best thing to use in this case? :?: :?: :?: