Hi all,
Could someone please solve this little question?
I'm trying to setup a enemy as a 'pickable' entity.
The entity is a .B3D animated model with a scene root and some chidrens depending of it (arms, body, legs, etc...)
When I create the enemy I use the next...
...
enemy\entity = loadanimmesh("enemy.b3d")
enemy\root = finchild(entity,"SceneRoot")
...
...
then I have doubts about how to do the picking setup:
a) entitypickmode enemy\entity,2
or
b) entitypickmode enemy\root,2
What option should be the correct one?
...or maybe we need to make all the childs pickables?
Now it seems to work properly just when I point to some
polygons, but really doesn't works as it should, with the
whole model.
Thanks in advance!
Could someone please solve this little question?
I'm trying to setup a enemy as a 'pickable' entity.
The entity is a .B3D animated model with a scene root and some chidrens depending of it (arms, body, legs, etc...)
When I create the enemy I use the next...
...
enemy\entity = loadanimmesh("enemy.b3d")
enemy\root = finchild(entity,"SceneRoot")
...
...
then I have doubts about how to do the picking setup:
a) entitypickmode enemy\entity,2
or
b) entitypickmode enemy\root,2
What option should be the correct one?
...or maybe we need to make all the childs pickables?
Now it seems to work properly just when I point to some
polygons, but really doesn't works as it should, with the
whole model.
Thanks in advance!