generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
15
_module/nss/shadeareaonenter.nss
Normal file
15
_module/nss/shadeareaonenter.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user