I am trying to find out when a new entity enters the world.
I thought pfn_spawn would work but it turns out that isn't called in mid map
Example:
Code:
public pfn_spawn(entId)
{
new className[64];
entity_get_string(entId, EV_SZ_classname, className, 63);
if(equali(className, "someClassName"))
{
// do something with entId entity
}
}
I need something like that, but since pfn_spawn doesn't catch entities spawned in the middle of a map it doesn't work.