I've never used particles before. I have made a plain, and glued it to a limb, and now I want to texture the flame particles on the plain. This is the flame code that I got off here...
function add_fire(x#,y#,z#,explode)
array insert at bottom fire()
inc obj_count
fire().fire_emit=obj_count
` make an emitter to produce our nice flame particles
MAKE BASIC EMITTER fire().fire_emit,30
texture object fire().fire_emit, fire
ghost object on fire().fire_emit
position object fire().fire_emit,x#,y#,z#
disable object zwrite fire().fire_emit
set object transparency fire().fire_emit, 1
`set up our emitter
SET EMITTER RATE fire().fire_emit,10
SET EMITTER EXPLODE fire().fire_emit, explode*0.01
SET EMITTER PARTICLE VELOCITY fire().fire_emit,1.0,0
SET EMITTER PARTICLE LIFE fire().fire_emit,3,0
SET EMITTER PARTICLE MASS fire().fire_emit, 1, 30
SET EMITTER PARTICLE SIZE fire().fire_emit,16, 0
SET EMITTER PARTICLE COLOR fire().fire_emit,255,255,255,50
SET PARTICLE Z SORTING fire().fire_emit,1
`lets add a wind effector to blow the fire upwards
inc obj_count
fire().wind=obj_count
MAKE WIND EFFECTOR fire().wind
BIND EFFECTOR TO OBJECT fire().wind,fire().fire_emit
SET WIND EFFECTOR fire().wind,0,5,0
`add a chaos effector to make the flame wave nicely
inc obj_count
fire().chaos=obj_count
Make Chaos Effector fire().chaos
Set Chaos Effector fire().chaos , 400
BIND EFFECTOR TO OBJECT fire().chaos,fire().fire_emit
endfunction
I made this plain...
make object plain 1010,50,50
rotate object 1010,90,0,0
glue object to limb 1010,Tank,9
I put it in a do loop
Pseudo code...
Do
texture object 1010,100 + whatever
Loop
I don't really get what particles are.. I can't seem to directly glue them to my tank limb.