# Class: l3dpemitter

l3dnode of a particle emitter. Every emitter starts with the default values from the particle system. You can change the emittertype afterwards.

## Hierarchy

    o-+ l3dlist
      o-+ l3dnode
        o-+ l3dpemitter

## Methods:

### Method overview:

- axis
- flipdirection
- getparticlesys
- height
- maxoffsetdist
- new
- offsetvelocity
- prtsize
- radius
- rate
- size
- spreadin
- spreadout
- start
- startage
- stop
- typecircle
- typemodel
- typepoint
- typerectangle
- typerectanglelocal
- typesphere
- velocity
- velocityvar
- width

new (string name,particlesys,l3dlayerid layer)
  returns: (l3dpemitter)
  new particle emitter l3dnode (default type)
axis (l3dpemitter,[int 0-2])
  returns: ([float])
  returns or sets emitter plane normal axis for typerectangle
flipdirection (l3dpemitter,[float])
  returns: ([float])
  returns or sets percent of flip direction
getparticlesys (l3dpemitter,)
  returns: (particlesys)
  returns particlesys emitter was created from
height (l3dpemitter,[float])
  returns: ([float])
  returns or sets emitter height for typerectangle(local)
maxoffsetdist (l3dpemitter,[float])
  returns: ([float])
  returns or sets max random offset from original spawnposition
offsetvelocity (l3dpemitter,[float x,y,z])
  returns: ([float x,y,z])
  returns or sets offset velocity
prtsize (l3dpemitter,[float])
  returns: ([float])
  returns or sets particle size
radius (l3dpemitter,[float])
  returns: ([float])
  returns or sets emitter radius for typecircle/typeshere. equivalent to size
rate (l3dpemitter,[float])
  returns: ([float])
  returns or sets rate
size (l3dpemitter,[float])
  returns: ([float])
  returns or sets emitter size (radius,width)
spreadin (l3dpemitter,[float])
  returns: ([float])
  returns or sets inner spread (radians)
spreadout (l3dpemitter,[float])
  returns: ([float])
  returns or sets outer spread (radians)
start (l3dpemitter,int timeoffset)
  returns: ()
  start with timeoffset(ms) from now
startage (l3dpemitter,[int])
  returns: ([int])
  returns or sets starting age of a particle
stop (l3dpemitter,int timeoffset,boolean norestarts)
  returns: ()
  end with offset from now, disallow restarts
typecircle (l3dpemitter, float radius)
  returns: ()
  sets emitter type to CIRCLE
typemodel (l3dpemitter, model, float scale)
  returns: ()
  sets emitter type to MODEL
typepoint (l3dpemitter)
  returns: ()
  sets emitter type to POINT
typerectangle (l3dpemitter, float width, float height, [int axis])
  returns: ()
  sets emitter type to RECTANGLE. Default plane normal is Z (2)
typerectanglelocal (l3dpemitter, float width, float height)
  returns: ()
  sets emitter type to RECTANGLELOCAL. width = along X axis, height = along Z axis
typesphere (l3dpemitter, float radius)
  returns: ()
  sets emitter type to SPHERE
velocity (l3dpemitter,[float])
  returns: ([float])
  returns or sets velocity
velocityvar (l3dpemitter,[float])
  returns: ([float])
  returns or sets velocityvar
width (l3dpemitter,[float])
  returns: ([float])
  returns or sets emitter width for typerectangles. equivalent to size

## Inherited Methods:

### From l3dnode

cambox, camsphere, camvolumedelete, color, delete, get, isanimateable, lightmap, lightmaptexmatrix, linkbone, linkinterface, localmatrix, localpos, localrotaxis, localrotdeg, localrotrad, name, novistest, parent, renderscale, rotationlock, setlayer, unlink, unlinkbone, updateall, uselocal, usemanualworld, visflag, worldmatrix, worldpos, worldrotaxis, worldrotdeg, worldrotrad

### From l3dlist

reinit