void main()
{
    int iDoOnce = GetLocalInt(OBJECT_SELF, "iDoOnce");

    if (iDoOnce == FALSE)
        {
        object oSource = OBJECT_SELF;
        object oTarget = GetObjectByTag("VFXMID_LEFT");
        effect eBeam = EffectBeam(VFX_BEAM_LIGHTNING, oSource, BODY_NODE_CHEST, FALSE);
        ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBeam, oTarget);
        SetLocalInt(OBJECT_SELF, "iDoOnce", TRUE);
        }
}




/*
//Source: GhostBear_74 of NwN Forums
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
    object oSource;
    object oTarget;
    oSource = GetObjectByTag("Obelisk001");
    oTarget = GetObjectByTag("Obelisk002");
    effect eRay = EffectBeam(VFX_BEAM_LIGHTNING, oSource, BODY_NODE_CHEST, FALSE);
    ApplyEffectToObject(DURATION_TYPE_PERMANENT, eRay, oTarget);
}
*/
