LIMB TEXTURE This command will return the integer image number used to texture the specified limb of the 3D object.
Syntax
    Return Integer=LIMB TEXTURE(Object Number, Limb Number)
    Return Integer=LIMB TEXTURE(Object Number, Limb Number, Texture Stage)
Parameters
    Object Number
Integer The object number
    Limb Number
Integer The limb number
    Texture Stage
Integer This value is an integer number such as 1.
Returns
This command will return the integer image number used to texture the specified limb of the 3D object
Description
Limbs that have been loaded pre-textured contain internal image data and return an image number of zero. The parameters should be specified using integer values.
Example Code
    backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0

    ObjectNumber=1

    LimbNumber=1

    load object "models\model.x",ObjectNumber

    print "LIMBS"

    print "exist:";limb exist(ObjectNumber, LimbNumber)

    if limb exist(ObjectNumber, LimbNumber)=1

    print "texture:";limb texture(ObjectNumber, LimbNumber)

    endif

    while mouseclick()=0

    sync

    endwhile

    if object exist(ObjectNumber)=1 then delete object ObjectNumber

    end
See also
BASIC3D Commands Menu Index