CountSurface
Blitz3D Forums/Blitz3D Programming/CountSurface| 
 | ||
| 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? | 
| 
 | ||
| Did the model load and display correctly? | 
| 
 | ||
| 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. | 
| 
 | ||
|  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... | 
| 
 | ||
| EntityClass() | 
| 
 | ||
| Heh.  Knew there was an S in it. :) | 
| 
 | ||
| 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. |