Particle2
From Unofficial QEdit Wiki Guide
Syntax
Syntax: particle2 register1, t_dword, t_float
- register = Start of continuous registers. Uses float values.
- t_dword = Particle number. Decimal value.
- t_float = Number of frames the particle is active.
Continuous registers
(3 registers.)
Register 1 = X-coord of particle in float value.
Register 2 = Y-coord of particle in float value.
Register 3 = Z-coord of particle in float value.
Use
Used to set a particle on a specific set of coordinates. Unlike Particle_V3 this op code uses floats and therefore can support things like sin and cos. Here's a video showcasing all particles supported by this op code: https://www.youtube.com/watch?v=4wFH3o8e-Os
Example
//This example is used to set a specific particle on the map.
100: fleti R1, 0 //Set the X value of the particle to 0. fleti R2, 15 //Set Y value of the particle to 15 fleti R3, 25 //Set Z value of the particle to 25 particle2 R1, 000001AC, 1 //Spawns a Demons particle at coordinates 0,15,25 for 1 frame. ret