LightObjectID =  light .direct .create  (  PosX ,  PosY ,  PosZ ,  TargetPosX ,  TargetPosY ,  TargetPosZ ,  LightFlags  )  
                                                              
Description :

This instruction creates a directional light source, specified by a world space position and a "target" world space position.

DEFAULT:
     The light is active.

Parameters :

  • X component of the position.
  • Y component of the position.
  • Z component of the position.
  • X component of the target position.
  • Y component of the target position.
  • Z component of the target position.
  • LIGHT_LOCAL     This flag defines that the light is local.

Return Handle :

  • ObjectID of the light if the creation was successful, NULL otherwise.

Examples :