OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: loki72 on 03 Aug 2008, 13:13:07
-
greetings,
is it possible to set the height of a created light?
_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:
_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:
-
_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.
-
perfect!
thank you kindly,
:good: