Page MenuHomeFeedback Tracker

[Feature Request] new scripting command: setLightDirection
New, NormalPublic

Description

Wondering would it be possible to have #lightpoint respond to class reflector direction and shape parameters?
Or maybe even add a separate type of light source #reflector if lightpoint can't orient 🤔

In class reflectors you can set the params:

  • innerAngle
  • outerAngle
  • coneFadeCoef
  • direction

So, the same for scripted lights, could use a single command I suppose, something like

<light> setLightDirection [
  <direction>, /* vector */
  <innerAngle>, /* number */
  <outerAngle>, /* number */
  <coneFadeCoef> /* number */
];

_light setLightDirection [getPos _light vectorFromTo (_light getPos [25, 270]), 100, 170, 6];

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

h- created this task.Mar 18 2021, 2:05 PM
dedmen added a subscriber: dedmen.Fri, Mar 26, 12:00 PM

A lightpoint is a point.
Point sources have no direction.

Maybe we can add a #lightreflector hopefully...