Home   Help Search Login Register  

Author Topic: #lightpoint and setPos height (solved)  (Read 1199 times)

0 Members and 1 Guest are viewing this topic.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
#lightpoint and setPos height (solved)
« on: 03 Aug 2008, 13:13:07 »
greetings,

is it possible to set the height of a created light?

Code: [Select]
_light = "#lightpoint" createVehicleLocal pos;

_light setLightBrightness 1.0;

_light setLightAmbient[0.0, 1.0, 0.0];

_light setLightColor[0.0, 1.0, 0.0];

_light lightAttachObject [_object, [0,0,0]]

i've tried this:

Code: [Select]
_p1 = getPos player;

_light = "#lightpoint" createVehiclelocal [(_p1 select 0),(_p1 select 1),(_p1 select 2)+3];

but the light still shows at ground level... :dunno:
« Last Edit: 03 Aug 2008, 13:45:47 by loki72 »

Offline i0n0s

  • Former Staff
  • ****
Re: #lightpoint and setPos height
« Reply #1 on: 03 Aug 2008, 13:28:03 »
Code: [Select]
_light lightAttachObject [_object, [0,0,0]] You attached it to an object. You either attach it higher ([0,0,z]) or move the object instead of the light.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: #lightpoint and setPos height
« Reply #2 on: 03 Aug 2008, 13:35:30 »
perfect!

thank you kindly,

 :good: