line render from object to object

hey, how do i use a line renderer to make a line that can be seen in game that goes from one empty gameobject to another?

This code doesn't require the Game Objects to be empty, but that's fine. They just need Transform components, and you can't have a Game Object without one!

// Populate this array in the order you want the line to travel.
var transforms : Transform[];   
private var lineRenderer : LineRenderer;

function Awake () {
    lineRenderer = GetComponent.<LineRenderer>();

    // Use this line again later, if transforms.Length changes. 

function Update () {
    for(var i = 0; i < transforms.Length; ++i) 
        lineRenderer.SetPosition(i, transforms*.position);*
*<p>Keep in mind, the Line Renderer <a href="" rel="nofollow">doesn't actually make lines</a>.  I recommend <a href="" rel="nofollow">Vectrosity</a> for that.</p>*