You are here

NPC sleep facing up

2 posts / 0 new
Last post
werdetp
NPC sleep facing up

How can I make NPC sleep on back?

I know there is a way to make the corpse face up(http://nwn.wikia.com/wiki/Make_a_corpse_out_of_a_creature).  Is there similar trick for sleep effect.

  • up
    50%
  • down
    50%
Proleric
Proleric's picture

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 http://proleric.com/

  • up
    100%
  • down
    0%