Home   Help Search Login Register  

Author Topic: [SOLVED] Creating basic lights in the editor  (Read 982 times)

0 Members and 1 Guest are viewing this topic.

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
[SOLVED] Creating basic lights in the editor
« 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
« Last Edit: 12 Apr 2008, 14:13:09 by CAS_Daniel »
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline Denz

  • Former Staff
  • ****
Re: Creating basic lights in the editor
« Reply #1 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.
« Last Edit: 12 Apr 2008, 14:05:35 by Denz »
I've got 'em right where I want 'em - surrounded from the inside!
Jerry "Mad Dog" Shriver, SOG Recon One-Zero
24/09/41 - 24/04/69

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re: Creating basic lights in the editor
« Reply #2 on: 12 Apr 2008, 14:12:11 »
That's perfect mate, much appreciated!  :)
Should cut down the number of toasted hiluxes immensely.  :D
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/