OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: loki72 on 03 Aug 2008, 13:13:07

Title: #lightpoint and setPos height (solved)
Post by: loki72 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:
Title: Re: #lightpoint and setPos height
Post by: i0n0s 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.
Title: Re: #lightpoint and setPos height
Post by: loki72 on 03 Aug 2008, 13:35:30
perfect!

thank you kindly,

 :good: