for r in sim.neighbors(x,y,1,1) do
local rtype = sim.partProperty(r, sim.FIELD_TYPE)
if rtype ~= [yourelementid] then
sim.partKill(r)
end
end
What about making it slower, because i trying to make gastric acid element, and real gast. acid cant destroy something so fast
you could have it set the particle's life value, and when it decrements to 0 it 1. loops back to the value you set, and 2. deletes a random particle around it, that way it doesn't do it super fast
Thanks, but i found ahother way: i just randomized this process. It is if variable value (which is math.random) equals to 4, then it melt something.
Sorry for my good english, because this lang is not my native