Re: Just a Couple Questions
This is for the missile:
Code:
function Update(self)
if not(MovableMan:IsParticle(self.target)) then
for emitter in MovableMan.Particles do
if particle.ClassName == "AEmitter" and particle.PresetName == "targetx" then
self.target = emitter;
end
end
elseif MovableMan:IsParticle(self.target) then
self.RotAngle = SceneMan:ShortestDistance(self.Pos,emitter.Pos,SceneMan.SceneWrapsX).AbsRadAngle;
self:EnableEmission(true);
end
end
Includes finding the emitter, setting it to "self.target", orientating itself to point towards self.target, and enabling its emission (assuming the missile is an emitter).