void main() { object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN); effect eSnore = EffectVisualEffect (VFX_IMP_SLEEP); if (IsInConversation(OBJECT_SELF) || GetIsInCombat()) return; ActionPlayAnimation(ANIMATION_LOOPING_DEAD_FRONT, 1.0f, 300.0f); }