LoD_PRC8/_module/nss/electricbeam2.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

22 lines
763 B
Plaintext

void main()
{
effect eZap2 = EffectDamage(100, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_NORMAL);
if (GetIsObjectValid(GetObjectByTag("ShootingStatue3")))
{
//Statue 1 shoots
effect eZap1 = EffectBeam(VFX_BEAM_LIGHTNING,GetObjectByTag("ShootingStatue3"),BODY_NODE_CHEST,FALSE);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eZap1, GetEnteringObject(), 1.0);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eZap2, GetEnteringObject());
};
if (GetIsObjectValid(GetObjectByTag("ShootingStatue4")))
{
//Statue 2 shoots
effect eZap1 = EffectBeam(VFX_BEAM_LIGHTNING,GetObjectByTag("ShootingStatue4"),BODY_NODE_CHEST,FALSE);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eZap1, GetEnteringObject(), 1.0);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eZap2, GetEnteringObject());
};
}