Grumpy Old Man 3540 Posted March 31, 2014 Hey folks, thanks to BI not adding searchlights and other cool stuff for mission makers I wondered if it's possible to create a directional light, similar to the searchlight from A2 or the current weapon flashlights. Looking at the current light scripting commands there doesn't seem to be a way to create directional light, or am I missing something? Cheers Share this post Link to post Share on other sites
Tajin 348 Posted March 31, 2014 Not that I know off. Share this post Link to post Share on other sites
Harzach 2507 Posted March 31, 2014 You might be able to do something with the two worklights, maybe? Land_PortableLight_single_F Land_PortableLight_double_F Share this post Link to post Share on other sites
Tankbuster 1733 Posted March 31, 2014 The light on the turret of the Hellcat has a very tight beam and is directional. Perhaps see what that uses? Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted March 31, 2014 You might be able to do something with the two worklights, maybe?Land_PortableLight_single_F Land_PortableLight_double_F Oh god yes! Didn't know about these, exactly what I'm looking for, thanks! Share this post Link to post Share on other sites
IndeedPete 1038 Posted March 31, 2014 Land_PortableLight_single_FLand_PortableLight_double_F Sorry to hijack your thread but has anyone seen these in the editor (unit placement)? I can copy and place them from BIS' missions but if I open them to put something in the init and then hit "Ok" they turn into large woodpiles. Wasn't able to find them in any category. (I know I can simply spawn them or use the copy & paste method; I was just wondering.) Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted March 31, 2014 Sorry to hijack your thread but has anyone seen these in the editor (unit placement)? I can copy and place them from BIS' missions but if I open them to put something in the init and then hit "Ok" they turn into large woodpiles. Wasn't able to find them in any category. (I know I can simply spawn them or use the copy & paste method; I was just wondering.) For anyone who wants to know this: Place a helper object in the editor, like an arrow or similar, then put this in the helper init field: _lamp = "Land_PortableLight_single_F" createvehicle getpos this; deletevehicle this tried it earlier and it should work, don't have access to arma right now ;) this light will give a decent directional light just as I wanted. They're definitely not in the editor, and as far as I know they didn't emit light in the earlier versions of arma, a welcome surprise that they do now. Cheers Share this post Link to post Share on other sites
IndeedPete 1038 Posted March 31, 2014 Good idea, thank you! Share this post Link to post Share on other sites
Kydoimos 915 Posted March 31, 2014 Grumpy Old Man - you beat me to it! I plan on using these as a spotlight on a heli. Let me know how it goes and if it works ok! Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted March 31, 2014 From what I've seen earlier these won't fit too well as a chopper spotlight since the light distance fades off pretty quickly. You can use this to force chopper lights on, since currently only player controlled choppers will use headlights. Might be of use to you: nul = [] spawn { while {canmove yourchoppername} do { driver yourchoppername action ["lightOn", yourchoppername];sleep 0.01 }; }; Share this post Link to post Share on other sites
Harzach 2507 Posted March 31, 2014 Sorry to hijack your thread but has anyone seen these in the editor (unit placement)? They're definitely not in the editor, and as far as I know they didn't emit light in the earlier versions of arma, a welcome surprise that they do now. CJTF101 Editor adds a lot of "hidden" objects back into the 2D editor, these lamps included. Really handy, and doesn't create a mod requirement in your mission file. Share this post Link to post Share on other sites
Kydoimos 915 Posted March 31, 2014 Ah, interesting - thanks. I'll take a look at that! Share this post Link to post Share on other sites