LightObjectID =  light .direct .create  (  PosX ,  PosY ,  PosZ ,  TargetPosX ,  TargetPosY ,  TargetPosZ  )  
                                                         
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.
     The light is not local.

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.

Return Handle :

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

Examples :