Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 16,232 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Easier way to reset changes after ent_clone? #208200
05/25/08 17:40
05/25/08 17:40
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
currently, If I want to back-out changes to an entity after using ent_clone or ent_cloneskin and ent_setmesh/ent_setskin/vec_to_mesh commands I ent_remove the entity and recreate it using ent_create.

I looked but didn't find anything, but is there an easier way to restore back to the original state before the ent_clone or ent_cloneskin functions were called?


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: Easier way to reset changes after ent_clone? [Re: LazyDog] #208262
05/26/08 08:09
05/26/08 08:09
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
That depends on the changes. Some changes, such as morphing the entity in a different model, can only be taken back by re-morphing it. For most changes you can just copy the relevant part of the ENTITY struct in atypes.h into a temporary struct, and then copy it back.


Moderated by  old_bill, Tobias 

Gamestudio download | 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