scene_add_light
Add a point light to a named environment configuration in a copied save; the lamp illuminates only while players are under that configuration, enabling night-only lighting.
Instructions
Add a point light that belongs to one environment configuration (环境配置), in a copy of a save: a lamp that is lit at night. A light shines only while a player is under the environment configuration it belongs to, so lamps for the night go on the night configuration made with scene_add_environment. environment is that configuration's name or id; position is [x, y, z]; radius is how far the light reaches (metres), intensity its strength, range the distance it is drawn from. Writes a new .gil in the workspace; the official save is not touched. Verified in play on 2026-10-10: the lamp is lit under its own configuration and off under any other.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| range | No | ||
| radius | No | ||
| mapPath | No | ||
| position | Yes | ||
| intensity | No | ||
| outputName | No | ||
| environment | Yes |