Another version of rayp's would be
Code:
ENTITY* myEnt = null;
..
//somewhere in your code
myEnt = ent_create ("any.mdl", vector (0,0,0), <some action of your own>);
..
//another place in your code
if (myEnt != null) {
//your entity was created.
 }



3333333333