EDIT: In this thread, boformer contributes a script to allow you to add lights to a prop whilst in the asset editor. Best is to install ModTools locally (also explained a few posts down) and run the Asset Editor in -noWorkshop mode. Once you have imported your prop, hit F7 to open the ModTools window. Copy and paste the script into the input box in ModTools and either press Enter or click "run". The light effects should immediately appear. In the script, you can control the position and rotation of the light effect. Later in the thread are examples for 3 light effects and 4 light effects, which have been tested and work!
Here is the script:
// --- FIRST LIGHT EFFECT ---
// Used light effect
var lightEffect1 = EffectCollection.FindEffect("Flood Light Orange") as LightEffect;
// Final position in prop
var pos1 = new Vector3(0f,10f,-1f);
// this would be near the center of the prop, 10m above ground
// Final direction in prop
var dir1 = new Vector3(0f,1f,0f);
// this would be up
var propEffect1 = new PropInfo.Effect {m_effect = lightEffect1, m_position = pos1, m_direction = dir1 };
// --- SECOND LIGHT EFFECT ---
var lightEffect2 = EffectCollection.FindEffect("Flood Light Orange") as LightEffect;
var pos2 = new Vector3(0f,10f,1f);
var dir2 = new Vector3(0f,1f,0f);
var propEffect2 = new PropInfo.Effect {m_effect = lightEffect2, m_position = pos2, m_direction = dir2 };
// Apply effects to prop
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as PropInfo;
asset.m_effects = new PropInfo.Effect[] { propEffect1, propEffect2};
asset.m_hasEffects = true;
---------------------------------------------
ORIGINAL POST:
I'm trying to add lights to this Rail Lighting tower prop. Does anyone know how to do it?