jagatai
Member
|
question on objCreate from worldmanager
Folks,
How/Where do i find the UID randomly generated by:
Code:
Game.World.objCreate()
Basically im trying to get the UID after the above returns true.
Im still working my way thru Esenthel so apologies if this has been asked before or found in the Worldmanager struct, but i cant seem to find it ;(
Thanks,
-J
|
|
05-18-2013 11:25 PM |
|
jagatai
Member
|
RE: question on objCreate from worldmanager
Unfortunately im still looking for where/how i can get the UID randomly generated by Game.World.objCreate() when true is returned which is stored in Game.ObjMemx<>
any help is appreciated.
Thanks,
-J
|
|
05-19-2013 09:08 PM |
|
Rubeus
Member
|
RE: question on objCreate from worldmanager
If you need the UID straight away, can you not just create your own UID, then pass it in?
UID id;
id.randomize();
Game.World.objCreate( params, mat, id )
|
|
05-19-2013 09:46 PM |
|
jagatai
Member
|
RE: question on objCreate from worldmanager
@Rubeus,
Thanks for the reply unfortunately thats my current workaround, i was hoping for the ability to pull the UID after objCreate() returned true.
Thanks,
-J
|
|
05-20-2013 03:27 AM |
|
Esenthel
Administrator
|
RE: question on objCreate from worldmanager
World.objCreate may unload the object to disk if it's out of range, so it might not be available in the RAM memory.
So Rubeus' method is the way to go
|
|
05-20-2013 12:16 PM |
|