this function get called when my costom classname entity is in game.
2 function "pfn_keyvalue" get called when entity is gone already.
Now i have function and i can get all entity data what i need but this is not enough.
I need to keep this entity in game somehow.
I tried to change class name to trigger_teleport ( so mayby engine think that is right entity and will keep it ) and then later change back to correct name..
no, it still delete this.
Seems like entity date of death is made yet earlier or mayby on this function (function when entity spawn is called) but the pfn_spawn(entid) will be too late.
I think there are variable for each entity, and if classname is wrong then variable will be true and then come funeral...
So, is there any hope to save my sweet entity?
mayby block this remove_entity thing or something?
Edit: i am so close to solve this entity problem, please someone share your knowledge i really need this.
Edit2: My bad, entity get never spawned and function never called for this entity just little mistake.
Now i lost all my hope.