Lighting (Headlamps)
Legion Studios' "lighting" framework, allowing modders to add built in lights to different pieces of equipment.
1. Configuration
1.1 Adding a flashlight to equipment
class CfgWeapons {
class TAG_myHelmet {
class ls_lighting {
enabled = 1; // 0-Disabled, 1-Enabled
// Array of CfgVehicles classes, explained further below
lightModes[] = {
"ls_lighting_whiteHigh", "ls_lighting_whiteLow",
"ls_lighting_redHigh", "ls_lighting_redLow",
"ls_lighting_blueHigh", "ls_lighting_blueLow"
};
// CfgSounds class to play when turning on the light
soundOn = "ls_lighting_activationRepublic";
// CfgSounds class to play when turning off the light
soundOff = "ls_lighting_deactivationRepublic";
// CfgSounds class to play when changing the light mode
soundToggle = "ls_lighting_toggle";
sources[] = {"center"}; // Array of class names for where to spawn lights
class center {
attachBone = "head"; // Bone to attach the light to
attachBoneFollow = 1; // 0-Don't rotate with bone, 1-Rotate with bone
attachOffset[] = {0, 0, 0}; // Offset to spawn light at (OPTIONAL)
attachVectorDir[] = {0, 0, 0}; // Direction vector (OPTIONAL)
attachVectorUp[] = {0, 0, 0}; // Up vector (OPTIONAL)
};
};
};
};1.2 Adding a custom light mode
Last updated