De DigiWiki.
default
{
state_entry()
{
llLinkParticleSystem(2, [0, 307, 7, .25, 1, <1,0,0>, 3, <1,0,0>, 5, <.04,.25,0>, 6, <.04,.25,0>, 9, 2, 13, .01, 8, <0,0,0>, 15, 10, 16, .01, 17, 0, 18, 2., 10, 8., 11, 0., 21, <0,0,0>, 19, 0., 12, "", 2, .7, 4, 0.]);
llSetTimerEvent(0.05);
}
timer()
{
float distance = llVecDist(llGetPos(), llList2Vector(llCastRay(llGetPos(), llGetPos() + (llRot2Fwd(llGetRot())*32.0), [RC_MAX_HITS, 1]), 1));
if(distance > 32) distance = 32;
llSetLinkPrimitiveParamsFast(2, [PRIM_SIZE, <0, 0, distance*2>, PRIM_POSITION, <distance, 0, 0>]);
}
}