Re: Script: Spraying random bullet types.
Code:
function Create(self)
local randprojectilearray = {projectile1, projectile2, etc};
local randprojectiletype = randprojectilearray[math.random(20)];
local randprojectile = CreateMOSRotating(randprojectiletype);
randprojectile.Pos = self.Pos;
randprojectile.Vel = self.Vel;
MovableMan:AddParticle(randprojectile);
self.ToDelete = true;
end
Here's some pseudo code, I have no idea if this would even work. Yes, I do realize that if this would work it would only be able to create MOSRotatings