Jump to content

Make player lie down - not sleep. Can it be done?


antstubell

Recommended Posts

I've looked in CK fir a marker for player to lie down and there isn't one. I thought I'd modify a bed, add my own objects in nifskope etc, but before I tested a bedroll marker with the Sleep checkbox unchecked. All it does is display a message "This bed is occupied."

Is there a way I can get player to lie down and be awake? Player needs sugary and a doctor is waiting to operate - yeah another of my crazy scenarios.

Link to comment
Share on other sites

There is actually a marker that npcs can use while sandboxing to lie down, but i don't think its animation will be suitable for your idea, is the "Relaxing" down animation, the same goes for the bed's animation.


The only animation that comes close to what you are looking for, is that of the 'Horizontal Coffin'.


Make it a "Is a Marker" and modify it so that the player does not go to sleep and he just uses the animation.


Your other alternative is to find the name of the animation (from the above / coffin), and play it on your corresponding "Static" furniture.

But i think this is an excessive thing to do since it can be done with the Marker (too much scripting for nothing).


* And you said that I am the crazy one...

Link to comment
Share on other sites

So after experimenting there is no real way to modify the horizontal coffin furniture. Unchecking Sleep just means it is stated as occupied. I tired to script an event that makes player use an idle.

 

Actor property PlayerREF Auto
Idle Property AnimToPlay Auto

Event OnActivate(ObjectReference akActionRef)
if(akActionRef == PlayerREF)
PlayerREF.PlayIdle(AnimToPlay)

EndIf
EndEvent

 

The animation that is used by NPCs when using the furniture is DLC1IdleCoffinHorzEnter but can't make player do this. I don't know what other method to use - if there is one.

Link to comment
Share on other sites

First make sure that what you are sending to the player is either an "Animation" or an "Idle".


Answering to your initial question again:

I haven't done it / tested it myself, but i'm 100% sure that it can be done !, since there are mods that allows you to use 'Beds' and 'Coffins' without using the game's sleeping function.

Link to comment
Share on other sites

Yes you are correct, this line "PlayerRef.PlayIdle(idle property)" will send the Idle to the player as long as it is not an animation but an Idle.


Plus the most important:

Some idles cannot be played with this function if the idle has an associated special furniture and is not listed in the idle manager.


Link to comment
Share on other sites

  • Recently Browsing   0 members

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