34 lines
408 B
Plaintext
34 lines
408 B
Plaintext
void main()
|
|
|
|
{
|
|
|
|
object oPC = GetFirstPC();
|
|
|
|
effect eEffect;
|
|
|
|
effect eVFX = EffectVisualEffect(VFX_COM_HIT_FROST);
|
|
|
|
while (GetIsObjectValid(oPC))
|
|
|
|
{
|
|
|
|
if (OBJECT_SELF==GetArea(oPC))
|
|
|
|
{
|
|
|
|
eEffect = EffectDamage(d8(3),DAMAGE_TYPE_COLD);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,eEffect,oPC);
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eVFX,GetLocation(oPC));
|
|
|
|
}
|
|
|
|
oPC = GetNextPC();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|