// allume ou éteit les objets lumineux quand sélectionné
// à placer dans OnUsed
void main()
{
if (GetLocalInt (OBJECT_SELF,"NW_L_AMION") == 0)
{
SetLocalInt (OBJECT_SELF,"NW_L_AMION",1);
PlayAnimation (ANIMATION_PLACEABLE_ACTIVATE);
SetPlaceableIllumination (OBJECT_SELF, TRUE);
RecomputeStaticLighting (GetArea(OBJECT_SELF));
}
else
{
SetLocalInt (OBJECT_SELF,"NW_L_AMION",0);
PlayAnimation (ANIMATION_PLACEABLE_DEACTIVATE);
SetPlaceableIllumination (OBJECT_SELF, FALSE);
RecomputeStaticLighting (GetArea(OBJECT_SELF));
}
}