About Store Forum Documentation Contact



Post Reply 
question on objCreate from worldmanager
Author Message
jagatai Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
jagatai Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
jagatai Offline
Member

Post: #4
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
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 smile
05-20-2013 12:16 PM
Find all posts by this user Quote this message in a reply
Post Reply