I posted this in the MED\WED section over a week ago and got a bunch of views but no replies. I think maybe it was in the wrong section, so hopefully someone here can shed some light on the issue...

I have a model where the body is textured with skin 1 and the face uses skin 2, each with a different texture.

When I use ent_setskin to change the texture on both the body and the face, I can only get the body to change.



Here is my code:

Code:
ent_setskin(girl,bmap_create ("kate-skin-512.pcx"),1);
ent_setskin(girl,bmap_create ("kate-face-512.pcx"),2);

The first line works fine and changes her body texture, but the second line (which should change the face texture, as it uses skin slot 2) only makes the whole face disappear; not only is no texture loaded but the polygons themselves disappear.

I've tried different textures to see if it's something to do with the texture file, but still no luck. I also tried setting the skin into slot 3 instead of 2, then changing my code accordingly, but no luck.

I'm just starting to get back into coding in this engine and I know there's got to be something simple I'm missing.

So.. how can I dynamically change textures on a model that uses different texture maps in different skin slots?

The eyes and hair are separate models so they shouldn't have anything to do with the texture issue.

Thanks!