I'm having trouble with costum particles.
First I clone an existing light source and define my own particle.
Code: Select all
cloneObject{
name = "temple_ceiling_lamp_red",
baseObject = "temple_ceiling_lamp",
particleSystem = "temple_ceiling_lamp_red",
lightColor = vec(1,0,0), -- RGB value
}looking at the mod_assets\scripts folder I saw that there is no particles.lua script, so I went ahead and created one.
the mod_assets\scripts\particles.lua script has only the following line.
Code: Select all
import "mod_assets/particles/temple_ceiling_lamp_red.lua"Code: Select all
defineParticleSystem{
name = "temple_ceiling_lamp_red",
emitters = {
-- glow
{
spawnBurst = true,
emissionRate = 1,
emissionTime = 0,
maxParticles = 1,
boxMin = {0,0,-0.1},
boxMax = {0,0,-0.1},
sprayAngle = {0,30},
velocity = {0,0},
texture = "mod_assets/textures/particles/red_glow.tga",
lifetime = {1000000, 1000000},
color0 = {0.8, 0.11, 0.05},
opacity = 1,
fadeIn = 0.1,
fadeOut = 0.1,
size = {3, 3},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 0,
blendMode = "Additive",
}
}
}Running the preview I get the following error msg:
warning! no such particle system: mod_assets/particles/temple_ceiling_lamp_red
Has anyone had a succsessfull costum particle show up ingame ?, can you see what I'm doing wrong here ?
Giving that there is no particle.lua and no particles folder undir the mod_assets I'm getting the wipe that this is not supported , can anyone confirm that ??
best regards.
Skuggasveinn.
