New Forums

Please go vote on the new forums now. Let's get this shipped.

You are here

NPC sleep facing up

2 posts / 0 new
Last post
NPC sleep facing up

How can I make NPC sleep on back?

I know there is a way to make the corpse face up(  Is there similar trick for sleep effect.

  • up
  • down

Try this:

const float FOREVER = 1000000000000.0; // 1 trillion seconds = about 5000 years of gameplay

void main()

  AssignCommand(oNPC, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_BACK, 1.0, FOREVER));


where oNPC is the NPC object.

The NPC will wake on conversation, which is good enough for most purposes.

If you want to make them vulnerable to coup-de-grace, though, you'd need to apply EffectSleep.

NWN and DAO adventures at

  • up
  • down