Jump to content
You are about to reply to a thread that has been inactive for 138 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I was working on a tiny simple newbie script for a "generator".

I need to make a particle effect that gives off 1 burst of sparks.

Tho i get this error code when i try to run my script: PSYS error: Rule 2 error, PSYS_SRC_ACCEL needs vector data.

 

Here is the section of the code that should be related to it:

(I should mention i already have the { and } as well as a default and entry state.)

vector COLOR_FIRE = <1.000, 0.522, 0.106>;

llSetPrimitiveParams([
                PRIM_FULLBRIGHTALL_SIDESFALSE,
               
PRIM_POINT_LIGHT, TRUE, COLOR_FIRE, 2.0, 3.0, 0.6]);        
  
       
float angle1 = 0.0000;
       
float angle2 = 3.1415;
       
vector endc = <1.0,0.7,1.0>;
       
float enda = 0.1;
       
vector ends = <0.5,0.5,0.5>;
       
float endg = 0.0;
        
       
float SMA = 0.1;
       
float PMA = 1.2;
        
       
vector RP = <2.0,0.0,0.0>;
        float  MS = 1.0;
        
       
llParticleSystem( [
       
PSYS_PART_BOUNCE_MASK,
         
       
PSYS_SRC_PATTERN,
       
PSYS_SRC_PATTERN_ANGLE_CONE,  
       
PSYS_SRC_ANGLE_BEGIN, angle1,
       
PSYS_SRC_ANGLE_END, angle2,
        
       
PSYS_PART_END_COLOR, endc,
       
PSYS_PART_END_ALPHA, enda,
       
PSYS_PART_END_SCALE, ends,
       
PSYS_PART_END_GLOW,  endg,
        
       
PSYS_SRC_MAX_AGE, SMA,
       
PSYS_PART_MAX_AGE, PMA,
        
     
  PSYS_SRC_OMEGA, RP,
       
PSYS_SRC_BURST_SPEED_MIN, MS,
       
PSYS_SRC_ACCEL, <0.0, 0.0, -0.8>
        
     ]);

 

(Please keep in mind that i'm still just learning the particle function and don't completly know how to use it correctly)

Also sorry for bad grammar- Thanks for reading! ^w^

Share this post


Link to post
Share on other sites

You forgot the part I usually put first " PSYS_PART_FLAGS"...

Try something like " llParticleSystem( [
         PSYS_PART_FLAGS, 
PSYS_PART_BOUNCE_MASK, ....

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 138 days.

Please take a moment to consider if this thread is worth bumping.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...