Jump to content

Problems with prisoner AI packages


azraelb

Recommended Posts

Hi,

 

currently I am creating a mod including a prison. Some prisoners should be chained to those wall mounted shackles, so I created a "sit" AI Package and did call the SetRestrained() function at package start (and did remove it when the package stops).

 

This part already works as intended, the prisoner is chained to the wall.

However I don't want them hanging there all day and night, so for a test, I did limit the "shackle" package to 12h and did create another "sit" package linked to a bedroll for the rest of the day .

So far so good, the cycle works like intended: from 0-12th hour , he is shackled, after 12h he walks to his bedroll and sleeps for 12 hours.

 

Now the cycle should repeat... and that's where the problems start :(

After his 12h sleep, he gets up and does nothing; instead of going to the shackles he just stands on his bedroll until the sleep package kicks in again.

However, if I leave the cell and enter it again (before the sleep package) he is shackled again until the sleep package starts.

 

Problem:

=> The prisoner is only shackled when I enter the cell while the "shackle" package is active. When I am in the cell while the "shackle" package starts, it doesn't work.

The same thing happens when I use the boundCaptiveMarker instead of the wall mounted shackles.

 

 

Would be really cool if some AI package Pro knows how to solve this problem.

 

Thx, greetings AZ

Link to comment
Share on other sites

I am by no means a pro, but I have noticed I have less troubles when I make my "12 hr package" into an 11.75 (or whatever) hr package. Like, if i have guards on 8am-8pm and then want them to sleep the other half, I'll make the sleep package like 8:05 PM for 11.75 hrs, and then they just mill about for a few min, between doing what I want. Even then, I have noticed that they tend not to start doing what they're supposed to be doing until I show up. (rather like employees)

 

I'm not sure how to fix it, but I remember from playing vanilla on console, that the vanilla Riverwood guards would be out at their editor location, and start walking to their posts, whenever I came into town.

 

Also, I have had less trouble with doing two scheduled packages. ie: work 0800 x12 , sleep 2005 x 11.75, rather than one scheduled an one anytime. My npcs always seem to be less likely to go to the next post, when a scheduled package ends and an anytime is still active.

Edited by thumbincubation
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...