after some testing i've figured it out.
In order to create an animated sprite with the vexd (amx) or engine (amxx) module, you must do the following:
a) create the entity (must be env_sprite)
b) set the model name
c) set the framerate
d) dispatch
There are many ways to create entities with vexd, whether you use DispatchKeyValue, or simply the entity variable setting functions (EV_INT_etc), and any ways can be used as long as they follow this model for animating sprites.
Examples:
Code:
new iEnt = CreateEntity( "env_sprite" );
ENT_SetModel( iEnt, "sprites/fire.spr" );
Entvars_Set_Float( iEnt, EV_FL_framerate, 10.0 );
DispatchSpawn( iEnt );
Code:
new iEnt = CreateEntity( "env_sprite" );
DispatchKeyValue( iEnt, "framerate", "10.0" );
DispatchKeyValue( iEnt, "model", "sprites/fire.spr" );
DispatchSpawn( iEnt );
From here you can now set any other entvars for the entity, including scale, classname (for easy remove_entity_name() reference), etc etc etc.
Hope this information is useful to someone out there.
__________________