redleaf on 16/7/2016 at 18:49
I have some grunts in a barracks. I want them to be asleep, so I gave them the metaproperty M-Sleeping Servant. They look fine in editor mode, but stand up and walk in place when I go in game. So I tried the New Sleeping Servant property, and the same thing happened. They walk on the bed, or in the center of the bunk, and snore as they walk and talk. I had this problem with grunts before in a level.
I have no problem when I apply the metaproperty to a bystander.
I read a post suggesting a few changes to the metaproperty for the sleeping servant, and tried those - no improvement.
Hoping someone can help me out here?
Three a.m. - going to sack out, so I won't be reading any replies until I wake up. I think. Can't be too sure with DromEd. :wot:
:bored::bored::bored:
FrenchDecay on 16/7/2016 at 19:33
I remember having that kind of problem, I'm not sure I can really help but you might want to check out your room brush (and build AI database and all that kind of stuff) or check out if the AI isn't spawned inside an object (wrong position)
Yandros on 16/7/2016 at 22:49
Starting with NewDark 1.20 or 1.21 this began happening for me, and the problem is the AI > Ability Settings > Idle: Returns to origin property as I recall. I think I had to add it explicitly and set to False on the sleeping metaprop to prevent them from doing this. The cool thing about this though is that you can set their origin specifically via the AI > State > Idling: Origin property, and that way when they wake up they'll go to that location instead of standing on the bed.
redleaf on 17/7/2016 at 06:10
Thanks, French Decay, for the response. And thank you, Yandros for a possible solution. I will try to do this and let you know how it works out.
redleaf on 17/7/2016 at 07:10
Quote Posted by FrenchDecay
... check out if the AI isn't spawned inside an object (wrong position)
Okay - I also checked to see if it might be because I had placed one of them on a lower bunk, which might be considered the center of an object. But my new sleeping AI is not having any problem with it.
redleaf on 17/7/2016 at 07:15
Quote Posted by Yandros
Starting with NewDark 1.20 or 1.21 this began happening for me, and the problem is the
AI > Ability Settings > Idle: Returns to origin property as I recall. I think I had to add it explicitly and set to False on the sleeping metaprop to prevent them from doing this. The cool thing about this though is that you can set their origin specifically via the
AI > State > Idling: Origin property, and that way when they wake up they'll go to that location instead of standing on the bed.
Hi Yandros: It didn't work with any of the original grunts. I had to make all new ones and configure the properties as you instructed. Now they are beautifully asleep! But ... how on earth do I get them to wake up and go to their origins???? Maybe it has something to do with an earlier tweak I found posted by Sluggs (I think). I'll look for it and undo it, see if that helps
PS: thank you for the idling origins thing. Something new I can use a lot!
redleaf on 17/7/2016 at 07:19
That tweq was indeed the problem - Properties>AI>Alert response>Alert Level had been set to High.
But now he wakes and is stuck in the middle of the bunk. Perhaps I need to reset the priority level?
redleaf on 17/7/2016 at 08:24
New problem. When he wakes up, it seems his vision is still Null even though the Metaproperty M-Sleeping Servant has been removed. I stand in full light light within his line of sight, very close, and he still can't see me.
Yandros on 17/7/2016 at 11:50
If you're putting him on the bottom of a double bunk, then yes he can be stuck in it when he wakes up. What I do to solve that is to change the phys dimensions of it so it's the lower bunk only, then I add a single bunk where the upper one is, but make it invisible, so the player can still climb on the top bunk. I may also be using a custom version of the sleeping metaprop that adds a lie2stand motion after removing the metaprop which "helps" him hop off the bed when he wakes.
redleaf on 18/7/2016 at 11:55
How clever! But he is on the top bunk now. I never heard of lie2stand before, only sit2stand. How will I ever learn it all? I will try both of these, and maybe one or both will work.