i'm trying to read entityname from loaded objects. i've tried creating objects in milkshape, and in gamespace, and saving as .x and .b3d and whatever else, but i can never get the entityname$ from them.
am i doing something horribly wrong?
http://www.runinteractive.com/blitz/testname.b3d has the object. it's just a box. i made it in milkshape, named the group 'test' or something, and saved it as b3d. it load fine, but entityname$ is blank.
this happens with every object i try to load - ones i create, ones i do not create.
if i do this:
nameentity(xz,"testname")
print entityname$(xz)
it outputs 'testname'
so, that works fine. something is going on with loadmesh - is this the right way to load objects?
if i use LoadAnimMesh (It is not animated), I get ROOT. 0 Children. Or if saved from gameSpace, I get 'Set', 0 children. These are either single objects, or multiple objects (with multiple names), grouped together by selecting them, and saving the whole thing as an object.
i'm desperate over here :(
i can't really do much without seeing the names of the objects.
:((
am i doing something horribly wrong?
; should be simple, right? xz=LoadMesh( "gfx\levels\testname.b3d" ) DebugLog "name:"+EntityName$(xz)
http://www.runinteractive.com/blitz/testname.b3d has the object. it's just a box. i made it in milkshape, named the group 'test' or something, and saved it as b3d. it load fine, but entityname$ is blank.
this happens with every object i try to load - ones i create, ones i do not create.
if i do this:
nameentity(xz,"testname")
print entityname$(xz)
it outputs 'testname'
so, that works fine. something is going on with loadmesh - is this the right way to load objects?
if i use LoadAnimMesh (It is not animated), I get ROOT. 0 Children. Or if saved from gameSpace, I get 'Set', 0 children. These are either single objects, or multiple objects (with multiple names), grouped together by selecting them, and saving the whole thing as an object.
i'm desperate over here :(
i can't really do much without seeing the names of the objects.
:((