16 lines
406 B
Plaintext
16 lines
406 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetEnteringObject();
|
||
|
object oObject = GetNearestObjectByTag("ShadowWater1", oPC);
|
||
|
int N = 1;
|
||
|
effect eAOE = EffectAreaOfEffect(AOE_PER_DARKNESS);
|
||
|
while (GetIsObjectValid(oObject) == TRUE)
|
||
|
{
|
||
|
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eAOE, GetLocation(oObject));
|
||
|
|
||
|
|
||
|
N = N + 1;
|
||
|
oObject = GetNearestObjectByTag("ShadowWater1", oPC, N);
|
||
|
}
|
||
|
}
|