findchild like command in irrlicht

BlitzMax Forums/BlitzMax Programming/findchild like command in irrlicht

ckob(Posted 2005) [#1]
Ok what I want to do is findchild like blitz3d but in bmax using irrlicht with a model. I have tried
Local torch1 = room.getchild("torch1")

but it doesnt work because it's looking for a index number so I dont think getchild is the right route so anyone have any idea?


gman(Posted 2005) [#2]
i believe you are seeking getSceneNodeFromName() on ISceneManager. the second parameter is the node you want to start with. so your code would look something like:
smgr.getSceneNodeFromName("torch1",room)

your gonna have to come clean with what your working on sometime ckob :)


ckob(Posted 2005) [#3]
Thanks gman once again :P

Well I dont want to announce it just yet because I dont wanna look bad if I can it :P but anyways its basically a game engine im working on.