PWE_PRC8/_module/nss/light_off_init.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

13 lines
375 B
Plaintext

void main()
//initializes light source to truly be off
{
if (GetLocalInt(OBJECT_SELF,"initialized") == 0)
{
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
DelayCommand(0.4,SetPlaceableIllumination(OBJECT_SELF, FALSE));
SetLocalInt(OBJECT_SELF,"initialized",1);
DelayCommand(0.4,RecomputeStaticLighting(GetArea(OBJECT_SELF)));
}
}