Need help with assigning an AI package to player

Post » Sun Nov 18, 2012 9:40 pm

I have a new furniture form for my NPCs to sit at, and I have five of these chairs scattered around the room.

I have a new AI Package form which uses an altered Sit template to choose one of my chairs. The four NPCs with this package will each choose a chair and go to it (the Sit command seems to reserve the seat even before they get to it, so there's no fighting over chairs).

The package works correctly on an NPC, but when I put it on the player, he just stands still. It seems that a Sit command on the player requires the player to already be close enough to the object to sit at it.

If I remove the command to Sit, so the package is just a travel-to package, the player will go to a chair. I can then tell him to Sit, but there's no guarantee that the chair is unoccupied, so he usually just stands there staring angrily at whoever stole his seat.

Is there some magic with Conditions or Papyrus or something that will allow me to 'reserve a seat' for my player and then make him go to that reserved seat?

Is there another solution I've overlooked that would be a better fit?
User avatar
Francesca
 
Posts: 3485
Joined: Thu Jun 22, 2006 5:26 pm

Post » Sun Nov 18, 2012 10:49 pm

don't know if it's possible, but set the chair as owned by the player?
User avatar
Darrell Fawcett
 
Posts: 3336
Joined: Tue May 22, 2007 12:16 am

Post » Mon Nov 19, 2012 10:23 am

I got it working and I have no idea how. This package wasn't working before.

If it helps anyone else later, my package uses the Sit template. The sit location is "playerRef" with a radius of 5000, and the search criteria is (the base chair object).

Whaaaatever. x)
User avatar
Bryanna Vacchiano
 
Posts: 3425
Joined: Wed Jan 31, 2007 9:54 pm


Return to V - Skyrim