Loading a Particle Effect
To interact with a particle effect you first need to find the effect by name (as specified in the CRYENGINE Sandbox). Use the
FindEffect method on the
The particle can be immediately spawned at a specific position.
ParticleEmitter follows a specific object and prevents certain effects from appearing at a certain position. The
ParticleEmitter is bound to an entity slot. For example the player's ship fires projectiles which are small default entities that are not visible since they have no model assigned, but the projectile's visual appearance is represented by a yellow flame particle effect which follows the projectile.
After you get the flame effect from the canyon level assets you can immediately load it into slot 1 by calling the
LoadParticleEmitter method. As long as the entity is not removed the continuous effect will follow the entity.
After the projectile is released you need to call the
Kill method on the particle emitter to stop it (for example after a bullet collision with an enemy). The engine removes the effect without a delay but without ending the effect immediately.