—» Home
—» Screens
—» Help
—» F.A.Q.
—» Armory
—» Download
Help Home

Tutorials

Weapon Scr. I
Weapon Scr. II

Cmd Reference

All Commands
General
Load
Graphics
HUD
Sounds
Player
Terrain
Projectiles
Particles
Collision
Objects
AI

Commands: particles

Legend

X - X is a number
'X' - X is a string (a letter/word/text)
[X=0] - X is an optional parameter with value 0 when omitted (NEVER add [] to your script!)


particle(TYPE, X, Y)

Parameters:
TYPE - particle type
X - x coordinate
Y - y coordinate
Creates a new particle at the (X|Y) coordinate.
The particle can be modified with other particle commands right after creation.

Possible TYPE values are:
p_smoke
p_lightpuff
p_fragment
p_blood
p_bigblood
p_muzzle
p_bubble
p_waterray
p_waterhit
p_bodypart
p_ring
p_firefragment
p_explosion
p_dust
p_flare
p_spark
p_bullet

particlealpha(ALPHA)

Parameters:
ALPHA - alpha from 0.0 to 1.0
Changes the alpha value (transparency) of the last particle created with the particle command.

particlecolor(RED, GREEN, BLUE)

Parameters:
RED - red value from 0 to 255
GREEN - green value from 0 to 255
BLUE - blue value from 0 to 255
Changes the color of the last particle created with the particle command.

particlefadealpha(FADE ALPHA)

Parameters:
FADE ALPHA - a (positive) fade value
Changes the alpha fade value of the last particle created with the particle command.
The alpha value of the particle will be decreased by this value each frame in order to create a fadeout effect.

particlerotation(ROTATION)

Parameters:
ROTATION - rotation angel
Changes the rotation of the last particle created with the particle command.

particlesize(SIZE X, SIZE Y)

Parameters:
SIZE X - x size factor
SIZE Y - y size factor
Changes the size of the last particle created with the particle command.

Attention: The original size scale factor of many particles is NOT 1.0! You have to try around a bit to find the right size.

particlespeed(SPEED X, SPEED Y)

Parameters:
SPEED X - x speed
SPEED Y - y speed
Changes the speed of the last particle created with the particle command.