56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Custom User Defined Event
|
||
|
//:: FileName
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By:
|
||
|
//:: Created On:
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nUser = GetUserDefinedEventNumber();
|
||
|
|
||
|
if(nUser == 1001) //HEARTBEAT
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1002) // PERCEIVE
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1004) // ON DIALOGUE
|
||
|
{
|
||
|
int nCounter = GetListenPatternNumber();
|
||
|
if ((nCounter==50)||(nCounter==51)||(nCounter==52)||(nCounter==53))
|
||
|
{
|
||
|
SetLocalInt(GetObjectByTag("px_NOTHINGBEAMYHERE"),"UnderPortal",1);
|
||
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,ExtraordinaryEffect(EffectVisualEffect(VFX_FNF_SOUND_BURST)),GetObjectByTag("px_NOTHINGBEAMYHERE"),30.0);
|
||
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,ExtraordinaryEffect(EffectVisualEffect(VFX_DUR_GLOW_RED)),GetObjectByTag("px_NOTHINGBEAMYHERE"),30.0);
|
||
|
DelayCommand(30.0,SetLocalInt(GetObjectByTag("px_NOTHINGBEAMYHERE"),"UnderPortal",0));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
else if(nUser == 1005) // ATTACKED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1006) // DAMAGED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1007) // DEATH
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1008) // DISTURBED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|