src/field/field_effect_spawn_resident.c
The main image's copy of the overlays' effect spawner (field_effect_spawn.c), an object of its own between the script commands: Carry's ring of dust (fdEffectSpawnRadialParticleRing) spawns through it.
#include "field/field_engine_functions.h"#include "sprite_ids.h"#include "field/field_effect.h"#include "field/sprite.h"
Functions
| Name | Description | |
|---|---|---|
void | fdEffectSpawnResident (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options) | Places a small effect at (x, y, z) moving at a velocity: a dust cloud, or options' type when EFFECT_USE_TYPE asks for it, its script one of FieldEffectDurationScripts and its options chosen by the EFFECT_USE_ flags. |
Variables
| Name | Description | |
|---|---|---|
extern const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
Description
The main image's copy of the overlays' effect spawner (field_effect_spawn.c),
an object of its own between the script commands: Carry's ring of dust
(fdEffectSpawnRadialParticleRing) spawns through it.
Functions in detail
fdEffectSpawnResident
void fdEffectSpawnResident(Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options)
Places a small effect at (x, y, z) moving at a velocity: a dust cloud, or
options' type when EFFECT_USE_TYPE asks for it, its script one of
FieldEffectDurationScripts and its options chosen by the EFFECT_USE_ flags.
References fdActorCreateStub(), fdActorGetById(), fdActorSelectAnimationStub(), fdActorSetSpriteColor(), fdActorStartScriptStub(), fdEffectUpdateMotionScaleAndSpin(), FieldEffectDurationScripts, MainRoutineStateWork and Sint32.
Referenced by fdEffectSpawnRadialParticleRing().
Definition at line 15 of file field_effect_spawn_resident.c.