module Base
{
	repeat
	model VVA_Vehicles_[LABEL][Postfix]_LightRL
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_RearLeft_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Light_RearLeft[Postfix]_obj,
end
		shader = vehicle_multiuv,
		static = [STATIC],
		scale = [SCALE],
	}
	model VVA_Vehicles_[LABEL][Postfix]_LightRR
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_RearRight_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Light_RearRight[Postfix]_obj,
end
		shader = vehicle_multiuv,
		static = [STATIC],
		scale = [SCALE],
	}
checkprop: LightS
	model VVA_Vehicles_[LABEL][Postfix]_LightRL_static
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_RearLeft_[LABEL][Postfix]_sobj,
else
		mesh = vehicles/[FILENAME]|Light_RearLeft[Postfix]_sobj,
end
		shader = vehicle_multiuv,
		static = TRUE,
		scale = [SCALE],
	}
	model VVA_Vehicles_[LABEL][Postfix]_LightRR_static
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_RearRight_[LABEL][Postfix]_sobj,
else
		mesh = vehicles/[FILENAME]|Light_RearRight[Postfix]_sobj,
end
		shader = vehicle_multiuv,
		static = TRUE,
		scale = [SCALE],
	}
end
	template vehicle VVA_[LABEL][Postfix]_RearLights {
		part HeadlightRearLeft 
		{
checkprop:	OnTrunk
			parent = TrunkDoor,
else
checkprop:	OnRearDoor
			parent = DoorRear,
else
checkprop:	OnParent
pasteprop:	OnParent
			parent = [Onparent],
end
end
end
end
			model Default
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightRL,
			}
checkprop: LightS
			model Static
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightRL_static,
			}
end
		}
		part HeadlightRearRight 
		{
checkprop:	OnTrunk
			parent = TrunkDoor,
else
checkprop:	OnRearDoor
			parent = DoorRear,
else
checkprop:	OnParent
pasteprop:	OnParent
			parent = [Onparent],
end
end
end
end
			model Default
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightRR,
			}
checkprop: LightS
			model Static
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightRR_static,
			}
end
		}
checkprop: LightS_ext
pasteprop: LightS_ext
		template! = VVA_[LightS_ext],
end
end
	}
	endrepeat
checkprop:	Variable
	template vehicle VVA_[LABEL]_VariableRearLights
	{
		part HeadlightRearLeft 
		{
repeat
			model [Postfix]
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightRL,
			}
end
		}
		part HeadlightRearRight 
		{
repeat
			model [Postfix]
			{
				file = VVA_Vehicles_[LABEL][Postfix]_LightRR,
			}
end			
		}
		template! = PZKA_VariableRearLights,
	}
end	
}