28 lines
1.1 KiB
Plaintext
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));
|
|
}
|