NPC won't stand where I want him to.

Post » Tue Jun 19, 2012 6:23 pm

Hi.

I'm trying to squeeze a barkeeper inside my bar, but no matter what I try he always spawns outside of the bar, and stays outside.
I checked my NavMesh and tried to make it as big as possible. I believe it should be big enough for my barkeeper.
If I anger the guards they will chase me behind the bar no problem. There is more than enough room for two NPCs to fit behind the bar at the same time. But the barkeeper just don't want to stay inside the bar.

What can I do to fix this?
Is there a way to force an Actor to spawn in a certain location, and force him to stay there?
User avatar
Jessica Phoenix
 
Posts: 3420
Joined: Sat Jun 24, 2006 8:49 am

Post » Tue Jun 19, 2012 9:39 am

If you use a counterbarleanmarker at your bar, add an AI package to your bar keeper and use SitTarget as the package template. Link the target to the counterbarleanmarker. It can works with useIdleMarker too.

If you want your bar keeper to stay behind the bar but wandering around, use the sandbox package template, set a radius around a xmarkerheading as the location, and your bar keeper will use any idlemarker in this radius.
User avatar
Setal Vara
 
Posts: 3390
Joined: Thu Nov 16, 2006 1:24 pm

Post » Tue Jun 19, 2012 2:15 am

Thanks, it was the AI packages that were wrong.
User avatar
Ana
 
Posts: 3445
Joined: Sat Jul 01, 2006 4:29 am


Return to V - Skyrim