void main() { object wpPC = GetWaypointByTag("PitFall2"); location lTarget= GetLocation(GetWaypointByTag("PitFall03")); object oPC= GetEnteringObject(); int intHP= GetMaxHitPoints(oPC) -200; effect eVis1 = EffectVisualEffect(VFX_DUR_FLIES); CreateObject(OBJECT_TYPE_PLACEABLE, "PitFall", lTarget); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_BACK, 1.0, 5.0)); AssignCommand(oPC, ActionSpeakString ("AAAAAaaaaaAAAAAAAAaaaaaaaHHhhh!!!!!")); AssignCommand(oPC, PlayVoiceChat(VOICE_CHAT_PAIN3)); FadeToBlack(oPC); DelayCommand(2.0, BlackScreen(oPC)); DelayCommand(2.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(intHP, DAMAGE_TYPE_PIERCING), oPC, 0.0f)); DelayCommand(2.8, AssignCommand(oPC, ActionJumpToObject(wpPC))); DelayCommand(4.0, FadeFromBlack(oPC)); }