About Store Forum Documentation Contact



Post Reply 
How to get Object ParamsPtr
Author Message
AndrewBGS Offline
Member

Post: #1
How to get Object ParamsPtr
If I already have an object, how can I get its ParamsPtr such that I can create a duplicate of that object?

(something else than storing the parameters in a variable inside the object, that causes some ugly bugs in my case)
03-21-2014 05:24 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: How to get Object ParamsPtr
If you have Game.ObjParams obj;
then you can do Game.ObjParamsPtr obj_ptr=&obj;
03-31-2014 06:02 AM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #3
RE: How to get Object ParamsPtr
I was just about to reply "that doesn't work in X case", but I thought, let's give it another shot before I report an issue. Aaaaand now it works. :|

Well, thanks grin
03-31-2014 06:15 AM
Find all posts by this user Quote this message in a reply
Post Reply