Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,544 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
obje_ReplaceObj wont work #378957
07/28/11 11:27
07/28/11 11:27
Joined: Oct 2006
Posts: 23
Turkey
_cash_ Offline OP
Newbie
_cash_  Offline OP
Newbie

Joined: Oct 2006
Posts: 23
Turkey
gp_WedInterface->object_SelectObjectID(nesneid);

CObjEditInterface * oei=gp_WedInterface->object_GetEditInterfaceID(nesneid);

MODELINFO mi;
oei->obje_GetInfo(&mi);

mi.Ambient=10;

oei->obje_ReplaceObj(&mi);

///////////////////////////////////
obje_ReplaceObj not run, object ambient not change. why?

please help

Re: obje_ReplaceObj wont work [Re: _cash_] #378973
07/28/11 13:09
07/28/11 13:09
Joined: Jul 2000
Posts: 28,093
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,093
Frankfurt
Wladimir is in vacation at the moment, but he'll look into the 3 reported issues when he's back.

Re: obje_ReplaceObj wont work [Re: jcl] #378979
07/28/11 13:43
07/28/11 13:43
Joined: Oct 2006
Posts: 23
Turkey
_cash_ Offline OP
Newbie
_cash_  Offline OP
Newbie

Joined: Oct 2006
Posts: 23
Turkey
ok, and say this to wladimir too.

if i delete object and create again some parameters
can be change but some cant.
for example:
///////////
gp_WedInterface->object_SelectObjectID(nesneid);

CObjEditInterface * oei=gp_WedInterface->object_GetEditInterfaceID(nesneid);

MODELINFO mi;
oei->obje_GetInfo(&mi);

mi.Ambient=10;

OBJECTTRANS ot;
VECTOR3_STC pos1;

oei->obje_GetTrans(&ot,true);
oei->obje_GetPosition((float*)&pos1,true);

oei->obje_Delete(); //delete object

if (oei->obje_AppendNewObj(pos1,&mi)) //old pos correctly get. and ambient chage
{
oei->obje_SetTrans(&ot,true); //but trans data not change!!!
}
///////////////////////

this code create object in same pos and scale but rotation is clear why?

and last 3 (BBox,Polygon,Local) flags are lost. why?

and how can i read FLARE flag in script?

and how can i change object name?

i have lots of question. if wladimir solve those, i ask another.

sorry for bad english and sorry for disturbing


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