CreateLight ( [type][,parent] )
Parameters:
| type (optional) - type of light 1: directional 2: point 3: spot parent (optional) - parent entity of light |
Description:
| Creates a light. Lights work by affecting the colour of all vertices
within the light's range. You need at to create at least one light if you
wish to use 3D graphics otherwise everything will appear flat. The optional parent parameter allow you to specify a parent entity for the light so that when the parent is moved the child light will move with it. However, this relationship is one way; applying movement commands to the child will not affect the parent. Specifying a parent entity will still result in the light being created at position 0,0,0 rather than at the parent entity's position. |
| None. |