The Light library provides information about a light in a level. Depending on the type
property and level version different property sets are available.
Name | Type | Mode | Description |
---|---|---|---|
number | number | R | Item number |
room | Room | R | The room that the item is in |
type | string | R | The light type name (Sun, Point, Spot, Shadow, Fog Bulb) |
visible | boolean | RW | Whether the item is visible in the viewer |
Name | Type | Mode | Description |
---|---|---|---|
colour | Colour | R | Light colour (TR3-5 only) |
direction | Vector3 | R | Direction vector of the light. Reversed in game. |
Name | Type | Mode | Description |
---|---|---|---|
colour | Colour | R | Light colour (TR3-5 only) |
fade | number | R | Fade value (TR1-3 only) |
falloff | number | R | Falloff value (TR4-5 only) |
hotspot | number | R | Hotspot value (TR4-5) |
intensity | number | R | Intensity value (TR1-4 only) |
position | Vector3 | R | Position of the object in game units |
Name | Type | Mode | Description |
---|---|---|---|
colour | Colour | R | Light colour (TR3-5 only) |
cutoff | number | R | Cutoff value (TR4 only) |
direction | Vector3 | R | Direction vector of the light. Reversed in game. |
fade | number | R | Fade value (TR1-3 only) |
falloff_angle | number | R | Falloff angle (TR4-5 only) |
hotspot | number | R | Hotspot value (TR4-5) |
intensity | number | R | Intensity value (TR1-4 only) |
length | number | R | Length value (TR4 only) |
position | Vector3 | R | Position of the object in game units |
rad_in | number | R | Rad in value (TR5 only) |
rad_out | number | R | Rad out value (TR5 only) |
range | number | R | Range value (TR5 only) |
Name | Type | Mode | Description |
---|---|---|---|
falloff | number | R | Falloff value (TR4-5 only) |
hotspot | number | R | Hotspot value (TR4-5) |
intensity | number | R | Intensity value (TR1-4 only) |
position | Vector3 | R | Position of the object in game units |
Name | Type | Mode | Description |
---|---|---|---|
colour | Colour | R | Light colour (TR5 only) |
density | number | R | Density value |
intensity | number | R | Intensity value (TR1-4 only) |
position | Vector3 | R | Position of the object in game units |
radius | number | R | Radius value |