| Image floater, random | Particle system |
| list Gimages = [ "TQBridgeClose", "TQBarExterior","SpaceM1", "SLRRHVsta","ShipBridge3",
"SciBF", "Pipewater", "KKRentry", "NissanVend", "DellWalkIn" ]; integer Gwait = 600; list Ximages = []; integer wait = 10; |
Global
variables Gimages carries the list of images. For a largr list, see Tools.
|
| default { state_entry() |
See: Dynamite |
| { llSetTimerEvent(wait); } | |
|
|
{ integer Nimages = llGetListLength(Ximages); |
|
if (0 == Nimages) |
|
wait = 60 ; |
|
|
list ParParams = [ PSYS_PART_FLAGS,( //Mask on:1. Off:0 ( 1 * PSYS_PART_EMISSIVE_MASK ) | ( 1 * PSYS_PART_BOUNCE_MASK ) | ( 1 * PSYS_PART_INTERP_COLOR_MASK ) | ( 1 * PSYS_PART_INTERP_SCALE_MASK ) | ( 0 * PSYS_PART_WIND_MASK ) | ( 0 * PSYS_PART_FOLLOW_SRC_MASK ) | ( 0 * PSYS_PART_FOLLOW_VELOCITY_MASK ) | ( 0 * PSYS_PART_TARGET_POS_MASK ) ), PSYS_PART_START_COLOR, <1.,1.,1.>, PSYS_PART_END_COLOR, <1.,1.,1.>, PSYS_PART_START_ALPHA, 1., PSYS_PART_END_ALPHA, 1., PSYS_PART_START_SCALE, < 2., 2., 0.0 >, PSYS_PART_END_SCALE, < 2., 2., 0.0 >, PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE, PSYS_SRC_BURST_PART_COUNT, 1, //Number of particles per burst, 1 to 4096 PSYS_SRC_BURST_RATE, 60., //Seconds between particle bursts, 0.0 to 60 PSYS_PART_MAX_AGE, 55., // How many seconds item displays 0.1 to 60 PSYS_SRC_MAX_AGE , 10., //Number of seconds this particle call continues PSYS_SRC_ACCEL, < 0.00, 0.00, 0.00 > , PSYS_SRC_BURST_RADIUS, .1, PSYS_SRC_BURST_SPEED_MIN, .00, PSYS_SRC_BURST_SPEED_MAX, .00 ]; llParticleSystem(ParParams+ [PSYS_SRC_TEXTURE,Ximage ]); |
Particle system, used to project images This is conceptually a single line setting parameters to control the particle system. Note about the timing numbers you put in the script. Your wish is not always the system's command. If you don't get the timing you asked for, the problem may not be in your script. It may be in system lag.
Particles have speed and ACCEL of.0, so the image does not move. |
| } } |
Close Timer block Close default |
|
The Thinkerer
05/09/2008 Copyright (c) D. F. Dansereau & S. H. Evans |
LODScr | ||
| Famous fables | |||