
 Need help attaching .lua to .ini file.
 
					
						Ok, so i downloaded a Rocket launcher template from 
viewtopic.php?f=1&t=10247&hilit=TemplateAnd made a .lua file with the following inside
"
function Create(self)
   for actor in MovableMan.Actors do
      if actor:HasObject("Rocket Launcher Template") and SceneMan:ShortestDistance(self.Pos,actor.Pos,true).Magnitude < 50 then
         self.ignoreteam = actor.Team
         break
      end
   end
end
function Update(self)
   if MovableMan:IsActor(self.target) then
      self.RotAngle = SceneMan:ShortestDistance(self.Pos,self.target.Pos,true).AbsRadAngle
      self:EnableEmission()
   else
      self.shortestdistance = -1
      for actor in MovableMan.Actors do
         if actor.Team ~= self.ignoreteam then
            self.curdist = SceneMan:ShortestDistance(self.Pos,actor.Pos,true).Magnitude
            if self.curdist < 500 and (self.shortestdistance == -1 or self.shortestdistance ~= -1 and self.curdist < self.shortestdistance) then
               self.target = actor
               self.shortestdistance = self.curdist
            end
         end
      end
   end
end
"
 And i am trying to connect that to the Emitter of the template, I have tried putting "ScriptPath = Rocket Launcher Template.rte/Missile.lua (missle.lua being the .lua file of coarse) right under 	GetsHitByMOs = 0, But it just stops working after it reads the first line of the .ini file.
Help me! (Sorry i posted something not to long ago but im working on a mod that should be great 

 )