module Base
{
	repeat
	model VVA_Vehicles_[LABEL][Postfix]_LightFL
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_FrontLeft_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Light_FrontLeft[Postfix]_obj,
end
		shader = vehicle_multiuv,
		static = [STATIC],
		scale = [SCALE],
	}
	model VVA_Vehicles_[LABEL][Postfix]_LightFR
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_FrontRight_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Light_FrontRight[Postfix]_obj,
end
		shader = vehicle_multiuv,
		static = [STATIC],
		scale = [SCALE],
	}
checkprop: LightS
	model VVA_Vehicles_[LABEL][Postfix]_LightFL_static
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_FrontLeft_[LABEL][Postfix]_sobj,
else
		mesh = vehicles/[FILENAME]|Light_FrontLeft[Postfix]_sobj,
end
		shader = vehicle_multiuv,
		static = TRUE,
		scale = [SCALE],
	}
	model VVA_Vehicles_[LABEL][Postfix]_LightFR_static
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_FrontRight_[LABEL][Postfix]_sobj,
else
		mesh = vehicles/[FILENAME]|Light_FrontRight[Postfix]_sobj,
end
		shader = vehicle_multiuv,
		static = TRUE,
		scale = [SCALE],
	}

checkprop:	saveLightS
	template vehicle VVA_[LABEL][Postfix]_FrontLights_static {
		part HeadlightLeft 
		{
			model Static
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightFL_static,
			}
		}
		part HeadlightRight 
		{
			model Static
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightFR_static,
			}
		}
	}
end
end
	template vehicle VVA_[LABEL][Postfix]_FrontLights {
		part HeadlightLeft 
		{
checkprop:	OnHood
			parent = EngineDoor,
else
checkprop:	OnParent
pasteprop:	OnParent
			parent = [Onparent],
end
end
end
			model Default
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightFL,
			}
checkprop: LightS
			model Static
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightFL_static,
			}
end
		}
		part HeadlightRight 
		{
checkprop:	OnHood
			parent = EngineDoor,
else
checkprop:	OnParent
pasteprop:	OnParent
			parent = [Onparent],
end
end
end
			model Default
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightFR,
			}
checkprop: LightS
			model Static
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightFR_static,
			}
end
		}
checkprop: LightS_ext
pasteprop: LightS_ext
		template! = VVA_[LightS_ext],
end
end
	}
	endrepeat
checkprop:	Variable
	template vehicle VVA_[LABEL]_VariableFrontLights
	{
		part HeadlightLeft 
		{
checkprop:	OnHood
			parent = EngineDoor,
else
checkprop:	OnParent
pasteprop:	OnParent
			parent = [Onparent],
end
end
end
repeat
			model [Postfix]
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightFL,
			}
end
		}
		part HeadlightRight 
		{
checkprop:	OnHood
			parent = EngineDoor,
else
checkprop:	OnParent
pasteprop:	OnParent
			parent = [Onparent],
end
end
end
repeat
			model [Postfix]
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightFR,
			}
end
		}
		template! = PZKA_VariableFrontLights,
	}
end
}