Amon_PRC8/_module/nss/warlockdies.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

54 lines
1.8 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name x2_def_ondeath
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Default OnDeath script
*/
//:://////////////////////////////////////////////
//:: Created By: Keith Warner
//:: Created On: June 11/03
//:://////////////////////////////////////////////
void main()
{
SetLocalInt(GetModule(), "RotWarlock", GetLocalInt(GetModule(), "RotWarlock") - 1);
if ((GetLocalInt (GetModule(), "RotWarlock") == 0) && (GetLocalInt (GetModule(), "RotWarlock2") == 4))
{
CreateObject(OBJECT_TYPE_PLACEABLE, "ablight1",
GetLocation(GetWaypointByTag("ablight1")));
CreateObject(OBJECT_TYPE_PLACEABLE, "ablight2",
GetLocation(GetWaypointByTag("ablight2")));
CreateObject(OBJECT_TYPE_PLACEABLE, "ablight3",
GetLocation(GetWaypointByTag("ablight3")));
CreateObject(OBJECT_TYPE_PLACEABLE, "ablight4",
GetLocation(GetWaypointByTag("ablight4")));
CreateObject(OBJECT_TYPE_PLACEABLE, "redlight",
GetLocation(GetWaypointByTag("ablight5")));
CreateObject(OBJECT_TYPE_PLACEABLE, "redlight",
GetLocation(GetWaypointByTag("ablight6")));
CreateObject(OBJECT_TYPE_PLACEABLE, "redlight",
GetLocation(GetWaypointByTag("ablight7")));
CreateObject(OBJECT_TYPE_PLACEABLE, "redlight",
GetLocation(GetWaypointByTag("ablight8")));
effect eEffect2 = EffectVisualEffect(VFX_FNF_SCREEN_SHAKE);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect2, GetLocation(GetObjectByTag("Shake_1")));
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect2, GetLocation(GetObjectByTag("Shake_2")));
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect2, GetLocation(GetObjectByTag("Shake_3")));
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect2, GetLocation(GetObjectByTag("Shake_4")));
SetLocalInt(GetModule(), "RotWarlock2", 0);
}
}