HoS_PRC8/_mod/_module/nss/fun_vfx_1.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

28 lines
1.1 KiB
Plaintext

// fun vfx 1
void main()
{
object oWP=GetWaypointByTag("TOWER_EFFECT3");
effect eVFX=EffectVisualEffect(VFX_IMP_LIGHTNING_M);
object oWP2=GetWaypointByTag("TOWER_TO_BEAM");
location lLoc1=GetLocation(oWP);
location lLoc2=GetLocation(oWP2);
object oPC=GetLastOpenedBy();
object oMe=OBJECT_SELF;
SendMessageToPC(oPC,"Strange energies are released.");
DelayCommand(10.0,AssignCommand(oMe,ActionCloseDoor(oMe)));
oWP=GetWaypointByTag("TOWER_EFFECT2");
location lLoc3=GetLocation(oWP);
oWP=GetWaypointByTag("TOWER_EFFECT1");
location lLoc4=GetLocation(oWP);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eVFX,lLoc1,3.0);
DelayCommand(5.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eVFX,lLoc3,3.0));
DelayCommand(10.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eVFX,lLoc4,3.0));
oWP=GetObjectByTag("LIGHTNING_ROD");
eVFX=EffectBeam(VFX_BEAM_LIGHTNING,oWP,BODY_NODE_HAND,FALSE);
DelayCommand(11.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eVFX,lLoc2,3.0));
DelayCommand(15.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eVFX,lLoc2,3.0));
DelayCommand(20.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eVFX,lLoc2,3.0));
}