Let Sleeping Dogs Lie

Post » Sun Nov 18, 2012 4:19 pm

I am creating an animal hospital, and I'm trying to make it such that there are bedrolls where several animals will lie down.
What I'm doing hasn't worked, which is to make a bedroll with ActorTypeAnimal as the user keyword.
Basically I want animals that lie down, don't get up, but aren't dead.

Anyone have any ideas?
User avatar
Andrew Tarango
 
Posts: 3454
Joined: Wed Oct 17, 2007 10:07 am

Post » Sun Nov 18, 2012 8:56 am

Well, there are laying down markers that would be very simple to use but I'm not sure if they work with animals (or maybe there is another marker for them).
User avatar
Theodore Walling
 
Posts: 3420
Joined: Sat Jun 02, 2007 12:48 pm

Post » Sun Nov 18, 2012 7:05 pm

There are separate idle markers for the animals. Laying down is evidently one of the idles. You see them lying down when they are idling.
User avatar
Zosia Cetnar
 
Posts: 3476
Joined: Thu Aug 03, 2006 6:35 am

Post » Sun Nov 18, 2012 3:30 pm

As ch0k3h0ld said, there are idles for the animals to lay down and I actually think it works. I used some in my house so my dog would lay down next to the fire and next to the bed and they seem to work... (he lays down everywhere else too, so it's hard to know for sure.)

But, I'd suggest you use an AI Package anyway. Make an actual marker for the package and control the behavior in the package. (Then, if your dogs get a miraculous cure, you can update the package for them to get up and run-around ;)
User avatar
Danger Mouse
 
Posts: 3393
Joined: Sat Oct 07, 2006 9:55 am

Post » Sun Nov 18, 2012 10:18 pm

Thanks, as it turns out its just called AnimalLayingDownIdleMarker

EDIT: NVM, this apparently works only for sabrecats.
User avatar
Lakyn Ellery
 
Posts: 3447
Joined: Sat Jan 27, 2007 1:02 pm

Post » Sun Nov 18, 2012 3:11 pm

Granted, I tend to use scripting for problems that have engine-based solutions, but... could you just add a script to the relevant animals that plays their lying down idle animation, and then use SetUnconscious to keep them from moving again?
User avatar
BaNK.RoLL
 
Posts: 3451
Joined: Sun Nov 18, 2007 3:55 pm

Post » Sun Nov 18, 2012 12:28 pm

Granted, I tend to use scripting for problems that have engine-based solutions, but... could you just add a script to the relevant animals that plays their lying down idle animation, and then use SetUnconscious to keep them from moving again?
Like you Verteiron, as a software developer I tend to use scripts, but in this case, I found the AI Packages really be the best way to achive behaviors. Combine scripts and AI Packages and I think my animals do some pretty cool stuff (obviously, I'm biased) that I was not able to figure out how to do with script alone.
User avatar
Scarlet Devil
 
Posts: 3410
Joined: Wed Aug 16, 2006 6:31 pm

Post » Sun Nov 18, 2012 10:33 am

Yeah, I discovered the joy of AI packages when I was building my Fire Guardian's breakup stage... the individual actors were running away too quickly for melee characters to kill them, so I have them attack first, then run away to reform into the Guardian after a few seconds. Wouldn't have been possible without conditional packages.
User avatar
Neliel Kudoh
 
Posts: 3348
Joined: Thu Oct 26, 2006 2:39 am

Post » Sun Nov 18, 2012 1:01 pm

Problems are, I can't find a single package that was designed for animals to lie down, and I have no idea which idle aniation is for a given animal lying down. I'll continue looking into it, posting whatever I find.
P>S I have trtied a number of package permutations, none seem to work.
User avatar
Tiff Clark
 
Posts: 3297
Joined: Wed Aug 09, 2006 2:23 am

Post » Sun Nov 18, 2012 12:56 pm

Also, I can't see how to script something using an animation.
User avatar
DeeD
 
Posts: 3439
Joined: Sat Jul 14, 2007 6:50 pm

Post » Sun Nov 18, 2012 2:42 pm

Give them a UseIdleMarker package, set your conditions and time/days and what not, then point to your marker in the package utility. I think that will do it.
User avatar
JUDY FIGHTS
 
Posts: 3420
Joined: Fri Jun 23, 2006 4:25 am

Post » Sun Nov 18, 2012 9:06 am

Tried it. The only idle marker I could find was AnimalLayDownIdleMarker (something like that anyway) and that only works for sabrecats apparently.
User avatar
BRIANNA
 
Posts: 3438
Joined: Thu Jan 11, 2007 7:51 pm

Post » Sun Nov 18, 2012 11:51 am

There is one specific to dogs: DogLayingDownIdleMarker. It's only used by Meeko, I think, but you should be able to look at his AI and Quests to see how to get other dogs to use it.

Many actors, including canines, cows, bears, and hares also have a laying-down idle that can be triggered with Debug.SendAnimationEvent(akTarget,"idleLayStart"). Goats have one called "idleGoatLieDownStart". Horses and deer don't seem to have any laydown animation, though you could ragdoll them and set them unconscious if you don't mind them looking dead rather than asleep :P
User avatar
Ownie Zuliana
 
Posts: 3375
Joined: Thu Jun 15, 2006 4:31 am

Post » Sun Nov 18, 2012 4:31 pm

There is one specific to dogs: DogLayingDownIdleMarker. It's only used by Meeko, I think, but you should be able to look at his AI and Quests to see how to get other dogs to use it.

Many actors, including canines, cows, bears, and hares also have a laying-down idle that can be triggered with Debug.SendAnimationEvent(akTarget,"idleLayStart"). Goats have one called "idleGoatLieDownStart". Horses and deer don't seem to have any laydown animation, though you could ragdoll them and set them unconscious if you don't mind them looking dead rather than asleep :tongue:

Huh, never would have thought to look under debug. Thanks!
User avatar
Ridhwan Hemsome
 
Posts: 3501
Joined: Sun May 06, 2007 2:13 pm

Post » Sun Nov 18, 2012 7:39 am

Have you tried duplicating EmptyIdleMarker and then adding the idle you want?

I used that to make a belly dancing marker for a certain establishment, and it worked just fine with useIdleMarker packages.

Of course, then we got 1.7 and after that it was a bit unreliable, but I've used the same approach elsewhere without problems.
User avatar
Damian Parsons
 
Posts: 3375
Joined: Wed Nov 07, 2007 6:48 am


Return to V - Skyrim