ent_create_independent()

Posted By: zazang

ent_create_independent() - 07/26/08 02:40

Hi

Ok this command is needed when an entity creates a child entity.
Currently with ent_create(),when the parent entity is removed with ent_remove(),then even the child entity stops running its functions.There are so many times we want a certain child entity to keep running its action irrespective of whether the parent is removed or not.
So I wish a similar command to ent_create can be added or maybe
add modes to the existing ent_create like
ent_create(filename,pos,function,mode);
where mode = 1 means linked to parent
mode = 2 no link to parent

Thanks
zazang
Posted By: badapple

Re: ent_create_independent() - 07/26/08 03:39

this is something i ve never heard before , i would think that
the child entity s removel would be based on its function and
not the removel of the parent entity
Posted By: zazang

Re: ent_create_independent() - 07/26/08 07:50

Its not "removal"...the entity is not removed,but it just hangs there with its functions terminated.
I hope I'm terribly wrong somewhere and someone can correct me.
Posted By: Joey

Re: ent_create_independent() - 07/27/08 19:39

i've also never heard of such a behaviour. it must be the function code you're using.
Posted By: tD_Datura_v

Re: ent_create_independent() - 07/27/08 21:59

:deleted:
reason=obvious

Posted By: zazang

Re: ent_create_independent() - 08/03/08 09:44

Sorry my bad, it was indeed an ill placed proc_kill that was terminating the fnctions.So I stand corrected smile
© 2024 lite-C Forums