While scripting does allow us to place lights, we can only place pointlights (#lightpoint), spotlights are currently not available via scripting.
The engine does support elaborate spotlights with all sorts of settings. These spotlights are used on vehicles and defined in the config. It is also possible to create modded lights via addons but nothing that compares to the flexibility that "#lightpoint" offers.