Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-09-2006, 02:36 AM
zephirot zephirot is offline
Banned?
Join Date: Sep 2004
Location: Paris
Posts: 1,311
zephirot is a name known to allzephirot is a name known to allzephirot is a name known to all
Send a message via AIM to zephirot Send a message via MSN to zephirot
Particles Help.

Well, I need help.
Graal Script Code:
//#CLIENTSIDE
function startEffect(effectnum) {
  
hideimgs(200300);

  switch (
effectnum) {
    case 
1: {
        
with (findimg(200)) {
          
// Smoke

          // Emitter attributes
          
layer 2;
          
emitter.delaymin 0.05;
          
emitter.delaymax 0.05;
          
emitter.nrofparticles 1;
          
emitter.firstinfront false;

          
// Basic particle attributes
          
emitter.particle.lifetime 5;
          
emitter.particle.image "g4_particle_smoke.png";
          
emitter.particle.mode 1// alpha transparent
          
emitter.particle.alpha 0.8;
          
emitter.particle.zoom 1;

          
// Movement
          
emitter.particle.angle pi;
          
emitter.particle.speed 8;
          
emitter.addlocalmodifier("once"00"angle""replace"pi 0.2pi 0.2);
          
emitter.addlocalmodifier("once"00"rotation""replace"02*pi);
          
emitter.addlocalmodifier("range"01"alpha""replace"0.40.6);
          
emitter.addlocalmodifier("range"15"alpha""replace"0.60);
          
emitter.addlocalmodifier("range"05"zoom""add"0.250.25);
          
emitter.addlocalmodifier("range"00.5"speed""replace"124);
          
emitter.addlocalmodifier("range"0.53"speed""replace"41.5);
          
emitter.addlocalmodifier("once"00"spin""replace"24);
          
emitter.addglobalmodifier("impulse"0.20.2"spin""multiply"0.90.9);
        } 
Also tried

Graal Script Code:
//#CLIENTSIDE
function startEffect(effectnum) {
  
hideimgs(200300);

  switch (
effectnum) {
case 
7: {
        
// Tornado
        
with (findimg(200)) {
          
// Emitter attributes
          
layer 2;
          
emitter.delaymin 0.1;
          
emitter.delaymax 0.2;
          
emitter.nrofparticles 1;
          
emitter.emissionoffset = {000};

          
// Basic particle attributes
          
emitter.particle.lifetime 5;
          
emitter.particle.image "g4_particle_tornado.png";
          
emitter.particle.mode 1;
          
emitter.particle.alpha 0.2;
          
emitter.particle.zoom 1.5;

          
emitter.particle.zangle 1;
          
emitter.particle.angle 0;
          
emitter.particle.speed 6;
          
emitter.particle.stretchy 0.7;
          
emitter.particle.spin 9;
          
emitter.addglobalmodifier("range"010000"angle""add"44);
          
emitter.addlocalmodifier("range"02.5"zoom""add"0.40.4);
          
emitter.addlocalmodifier("range"2.55"zoom""add"11);
          
emitter.addlocalmodifier("range"00.5"alpha""replace"0.20.99);
          
emitter.addlocalmodifier("range"45"alpha""replace"0.990);
        }
        break;
      } 
Whats wrong
__________________

Quote:
Originally Posted by unixmad
Can you just shut up ?
MAGA
MFGA
MEGA
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:38 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.