OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: CAS_Daniel on 12 Apr 2008, 13:57:13

Title: [SOLVED] Creating basic lights in the editor
Post by: CAS_Daniel on 12 Apr 2008, 13:57:13
Unless theres an object I missed in the 6th sense pack, i'm guessing this will involve some particle effects, which is something I havn't ventured into.
I've made a mission in Corazol at night without NVs, so I need some basic lighting for the darker areas with no island lights nearby. And I don't want to have to use a burnt out pickup with a campfire underneath on every corner.  :P A simple white light that illuminates a few feet around it that I can say place at a certain height on a game logic would be perfect.

Cheers, Dan
Title: Re: Creating basic lights in the editor
Post by: Denz on 12 Apr 2008, 14:03:28
Try this in the init line of a gamelogic
Code: [Select]
light = "#lightpoint" createVehicleLocal position this;  light setLightBrightness 0.14;  light setLightAmbient[0.0, 0.0, 0.0];  light setLightColor[1.0, 1.0, 1.0];  light lightAttachObject [this, [2,1,2]]If I remember rightly that's pretty low level lighting.
Easy enough to edit to get the settings you want.
Title: Re: Creating basic lights in the editor
Post by: CAS_Daniel on 12 Apr 2008, 14:12:11
That's perfect mate, much appreciated!  :)
Should cut down the number of toasted hiluxes immensely.  :D