Passer au playerPasser au contenu principal
  • il y a 2 mois
Premier code (First Code)
let [x, y, z] = thisPos
y += 1
api.playParticleEffect({
dir1: [-1, -1, -1],
dir2: [1, 1, 1],
pos1: [x, y + 4, z],
pos2: [x + 1, y + 9, z + 1],
texture: "square_particle",
minLifeTime: 300,
maxLifeTime: 300,
minEmitPower: 2,
maxEmitPower: 2,
minSize: 0.25,
maxSize: 0.35,
manualEmitCount: 80,
gravity: [0, -10, 0],
colorGradients: [
{
timeFraction: 0,
minColor: [173, 173, 173, 0.5],
maxColor: [92, 92, 92, 0.5],
},
],
velocityGradients: [
{
timeFraction: 0,
factor: 0,
factor2: 0,
},
],
blendMode: 1,
})




Second Code




let [x, y, z] = thisPos
y += 1
api.playParticleEffect({
dir1: [-1, -1, -1],
dir2: [1, 1, 1],
pos1: [x + 0.1, y + 1.5, z + 0.1],
pos2: [x + 0.9, y + 2.5, z + 0.9],
texture: "square_particle",
minLifeTime: 300,
maxLifeTime: 300,
minEmitPower: 2,
maxEmitPower: 2,
minSize: 0.05,
maxSize: 0.15,
manualEmitCount: 110,
gravity: [0, -10, 0],
colorGradients: [
{
timeFraction: 0,
minColor: [255, 0, 0, 0.5],
maxColor: [255, 255, 0, 0.8],
},
],
velocityGradients: [
{
timeFraction: 0,
factor: 0,
factor2: 0,
},
],
blendMode: 1,
})

Recommandations