Posted By: Frederick_Lim
frustrated in ent_remove() - 11/30/07 02:09
I am frustrated in ent_remove() 
Question: I'd like to know how to detect the entity was removed by ent_remove()?
I found check the entity pointer against NULL is not work, it seems after execute ent_remove(e), the e entity pointer is not NULL. In fact, once the entity removed, I still able to access its skill value.
Because of that, I am not checking the (e != NULL), but checking (e.health < 1).
It seems works prefect, everything looks good. But I am worrying about potential crash.

Question: I'd like to know how to detect the entity was removed by ent_remove()?
I found check the entity pointer against NULL is not work, it seems after execute ent_remove(e), the e entity pointer is not NULL. In fact, once the entity removed, I still able to access its skill value.
Because of that, I am not checking the (e != NULL), but checking (e.health < 1).
It seems works prefect, everything looks good. But I am worrying about potential crash.