I think the on_ent_remove event is a pretty convenient way to free allocated memory that is saved in entity skills:

#define path skill90

ent.path = sys_malloc...

void on_ent_remove_event(ENTITY* ent)
{
if(ent.path) sys_free...
}

On the downside, you should not use the specific skill for anything else.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends