RoT2_PRC8/_module/nss/cb_areacold.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

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();
}
}