light .mode .set  (  LightObjectID ,  LightMode  )  
                                
Description :

This instruction defines the state flags used to manage the lighting behavior of a light.

Parameters :

  • ObjectID of the light.
  • LIGHT_ON : Activate the light.
    LIGHT_OFF : Deactivate the light.

    LIGHT_ATTENUATEON : Activate attenuation of the light.
    LIGHT_ATTENUATEOFF : Deactivate attenuation of the light.

Examples :