Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, TipmyPip), 1,144 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
cloning #409926
10/24/12 22:21
10/24/12 22:21
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
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.



Re: cloning [Re: Random] #409928
10/24/12 23:04
10/24/12 23:04
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
uhm.. yes.. i think this should work:

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



Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: cloning [Re: Espér] #410061
10/27/12 14:52
10/27/12 14:52
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
works perfectly fine. Thank you!



Re: cloning [Re: Random] #410062
10/27/12 14:54
10/27/12 14:54
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
<SOLVED>



Re: cloning [Re: Random] #410064
10/27/12 15:07
10/27/12 15:07
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you can also use entity->type wink
works faster and without an additional string


Visit my site: www.masterq32.de

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1