13 lines
375 B
Plaintext
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)));
|
|
}
|
|
|
|
}
|