22 lines
763 B
Plaintext
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());
|
|
};
|
|
}
|
|
|
|
|
|
|