void main() { object oPC = GetEnteringObject(); int nIdx = 0; object oTarget = GetObjectByTag("fr_crystal_glow",nIdx); float fSpeed = 0.5; float FDur = 50.0; object oArea = GetObjectByTag("fr_iwd_i_xlair"); if(GetIsPC(oPC) == TRUE) { if (GetLocalInt(OBJECT_SELF,"nDone")!=1) { while (GetIsObjectValid(oTarget)) { AssignCommand(oTarget, ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE, fSpeed, FDur)); SetPlaceableIllumination(oTarget, TRUE); nIdx++; oTarget = GetObjectByTag("fr_crystal_glow",nIdx); } SetLocalInt(OBJECT_SELF,"nDone",1); } if (GetLocalInt(OBJECT_SELF,"nDone")==1) { RecomputeStaticLighting(oArea); } } }