Interior Lights - NeisesMike/VehicleFramework GitHub Wiki

These light up the inside of your vehicle.

Normally, they will only be turned on when the player is inside.

Overview

Submarine has the field:

public virtual List<Light> InteriorLights => null;

This is a simple list of Unity lights.

Make them as bright or as high-radius as you like.

Even if you don't specify them here, your lights will light up your vehicle.

But if you specify them, VF will turn them off when the player leaves or the vehicle dies or is scuttled.

That can be nice because vehicles are prone to light-leakage. In other words, when a player is outside but the lights are on, sometimes light can be seen leaking through the cracks of the vehicle. That's undesirable.

⚠️ **GitHub.com Fallback** ⚠️