EDIT: just realized i didnt put this in lua scripting, whoops
wow ive been spamming this place huh?
well, i like modding, so
Code:
  if self.Magazine ~= nil then
    if self:IsActivated() == true then
      self.shooting = true
    end
    if self:IsActivated() == false and self.shooting == true then
       self.shooting = false
       sfx = CreateAEmitter("Stop Shoot BIG MGER");
       sfx.Pos = self.Pos;
       MovableMan:AddParticle(sfx);
    end
  end
this does not work, tells me that addparticle is supposed to be (movablemanager2, movableobject*)
i find this weird because this code (taken from some code 4zk made for me
Code:
   elseif self.Magazine and self:IsActivated() then      -- not yet charging, activated & magazine exists (not reloading)
      if self.triggerPulled == false then         -- trigger isn't already been pulled
         self:Deactivate();            -- can't fire
         self.charge = true;         -- start charge
         self.triggerPulled = true;      -- trigger has been pulled
         self.chargeTimer:Reset();      -- start timer from 0
         sfx = CreateAEmitter("Heavies Sniper Charge"); -- make an AEmitter with the sound, example: Dummy.rte/Devices/Weapons/Laser Cannon.ini/"Dummy Laser Cannon Sound Fire"
         sfx.Pos = self.Pos;
         MovableMan:AddParticle(sfx);
works perfectly, even tho its the same.
?????
i can copyp aste it right over and change the name (its still an aemitter btw) and it stops working
so what