PRC8/trunk/spells/sp_daylightB.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

13 lines
335 B
Plaintext

///////////////////////////////////////////////////////
// Daylignt On Exit
// sp_daylightB.nss
///////////////////////////////////////////////////////
void main()
{
object oTarget = GetExitingObject();
int nLight = GetLocalInt(oTarget, "PRCInLight");
nLight--;
SetLocalInt(oTarget, "PRCInLight", nLight);
}