CountSurface

Blitz3D Forums/Blitz3D Programming/CountSurface

Baystep Productions(Posted 2006) [#1]
I decided to start using YAL on my level maker for my new game.
But for some reason I get a MAV on CountSurface. Trying it outside of YAL I still get the MAV. Whats wrong with my models?

There b3d made in Milkshape. But why the MAV?


Dreamora(Posted 2006) [#2]
Did the model load and display correctly?


Matty(Posted 2006) [#3]
What does it say in debug mode?

Perhaps you are using countsurface on an entity which is not a mesh. IE if you are loading the entity with loadanimmesh then it is possible that the entity you are calling 'countsurface' on is a pivot or bone.


GfK(Posted 2006) [#4]
it is possible that the entity you are calling 'countsurface' on is a pivot or bone.
I haven't used Blitz3D for ages now but I remember there was a function added to return the entity type i.e. mesh, pivot, terrain etc.

If you aren't sure about the entity you're counting surfaces on, that command will help you out. I think it was EntityState or EntityStatus or something...


Beaker(Posted 2006) [#5]
EntityClass()


GfK(Posted 2006) [#6]
Heh. Knew there was an S in it. :)


Baystep Productions(Posted 2006) [#7]
MAtty, you got it right. It was a pivot. So I just rand For with CountChildren to lightmap the children. Thanks all.

You can lock this now.