- particle[i].xpos := ParticleScript[PS].PosX;
- particle[i].ypos := ParticleScript[PS].PosY;
- particle[i].zpos := ParticleScript[PS].PosZ;
- if ParticleScript[PS].PosRandomX > 0 then
- particle[i].xpos := particle[i].xpos + (random(trunc(ParticleScript[PS].PosRandomX))/2) - (random(trunc(ParticleScript[PS].PosRandomX))/2);
- if ParticleScript[PS].PosRandomY > 0 then
- particle[i].ypos := particle[i].ypos + (random(trunc(ParticleScript[PS].PosRandomY))/2) - (random(trunc(ParticleScript[PS].PosRandomY))/2);
- if ParticleScript[PS].PosRandomZ > 0 then
- particle[i].zpos := particle[i].zpos + (random(trunc(ParticleScript[PS].PosRandomZ))/2) - (random(trunc(ParticleScript[PS].PosRandomZ))/2);