cloning

Posted By: Random

cloning - 10/24/12 22:21

Just a little question.
I want to create a model, which looks the same as the model before after starting a special event (such as clicking the model).
Here is what I tryed (I get a warning, but no syntax error):
Code:
you = ent_create(ent_clone(my),my.x,player_add_weapon);


Any ideas?

Thank you future more.
Posted By: Espér

Re: cloning - 10/24/12 23:04

uhm.. yes.. i think this should work:

Code:
STRING* entname = "";
...
str_for_entfile(entname,my);
entity = ent_create(entname, nullvector, NULL));

Posted By: Random

Re: cloning - 10/27/12 14:52

works perfectly fine. Thank you!
Posted By: Random

Re: cloning - 10/27/12 14:54

<SOLVED>
Posted By: MasterQ32

Re: cloning - 10/27/12 15:07

you can also use entity->type wink
works faster and without an additional string
© 2024 lite-C Forums