void main()
{
object oPC = GetEnteringObject();
location lSpawn1 = GetLocation(GetWaypointByTag("your_wp_tag1"));
location lSpawn2 = GetLocation(GetWaypointByTag("your_wp_tag2"));
if (!GetIsPC(oPC))
return;
object oSpawn1 = CreateObject(OBJECT_TYPE_CREATURE, "your_creature_resref", lSpawn1);
object oSpawn2 = CreateObject(OBJECT_TYPE_CREATURE, "your_creature_resref", lSpawn2);
/*
Try the VFX without the delay first. If the timing is off, then comment out the first two lines and uncomment
the two lines with the Delay. You'll have to adjust the delay timer to suit the effect you are trying to achieve.
*/
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_LIGHTNING_M), oSpawn1);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_LIGHTNING_M), oSpawn2);
//DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_LIGHTNING_M), oSpawn1));
//DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_LIGHTNING_M), oSpawn2));
}