21 lines
504 B
Plaintext
21 lines
504 B
Plaintext
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(300, DAMAGE_TYPE_ELECTRICAL, DAMAGE_POWER_ENERGY), oPC);
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_INFERNO), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_INFERNO), GetLocation(oTarget));
|
|
|
|
}
|
|
|