Hi,

I made a particle script with EasyParticle 3.1, and I am trying to convert the generated script to Lite-C...
I am having some problems with it, I am fixing every error I find trying to run the script, but it sticks with my.vel_x (and y and z), if I comment it, so the script moves on, it stops at my.lifespan...

Are these commands changes in Lite-C?
This is my WDL script, can someone please take a look at it?
Or explain what kind of particle related commands are changed?

Thank you.

This is my WDL code:

I have already changed some things:

- bmap -> BMAP*
- Function -> function (Changed capital F to lower)
- My -> my (Changed capital M to lower)
- action actionname{ -> action actionname(){
- the flags in c_trace
- time -> time_step


Code:
BMAP* sun_farbe1 = "sun_red.tga";
var laserAAnzahlPartikel = 20;


function laserA_spec_fun()
{
    c_trace(vector(my.skill_d,my.skill_y,my.skill_z),my.x,IGNORE_ME|IGNORE_PASSABLE|IGNORE_MODELS|IGNORE_SPRITES);
    if(trace_hit == 1)
    {
      my.vel_x = 0;
      my.vel_y = 0;
      my.vel_z = 0;
      my.lifespan = 0;
    }
    my.skill_d = my.x; my.skill_y = my.y; my.skill_z = my.z;
    my.alpha -= 4.909 *time_step;
    if(my.alpha < 0) { my.alpha = 0; my.lifespan = 0; }
}

function laserAspezial()
{
    my.blue = 128 ;
    my.green = 128 ;
    my.red = 128 ;
    my.bmap = sun_farbe1;
    my.vel_x = random( 33.867 ) - 16.934 ;
    my.vel_y = random( 0 ) - 0 ;
    my.vel_z = random( 0 );
    my.size = 1 ;
    my.alpha = 21.738 ;
    my.gravity = 0 ;
    my.streak = off;
    my.flare = off;
    my.bright = on;
    my.beam = off;
    my.move = on;
    my.transparent = off;
    my.function = laserA_spec_fun;
}


function laserA()
{
  while(1)
  {
     laserAAnzahlPartikel = 20;
     effect(laserAspezial,max(1,laserAAnzahlPartikel*time_step),my.x,nullvector);
     wait(1);
  }
}


action laserA_action()
{
  my.invisible = on;
  my.passable = on;
  while(!key_q) { wait(1); }
  laserA();
}


P.S.
Will there be a Lite-C version of EasyParticle someday?


The best games are the games you create yourself.