PLAY OBJECT These commands will play the animation data contained within the specified 3D object.
Syntax
    PLAY OBJECT Object Number
    PLAY OBJECT Object Number, Start Frame
    PLAY OBJECT Object Number, Start Frame, End Frame
Parameters
    Object Number
Integer The object number
    Start Frame
Integer The start frame
    End Frame
Integer The end frame
Returns
This command does not return a value.
Description
You can optionally play the animation by providing a specified start and end frame. The parameters should be specified using integer values.
Example Code
    sync on : sync rate 0 : hide mouse:cls 0

    ObjectNumber=1

    load object "models\model.x",ObjectNumber

    append object "models\extraanim.x", ObjectNumber, total object frames(ObjectNumber)+1

    set object ObjectNumber,1,0,1,2,1,1,1

    set object speed ObjectNumber,5

    play object ObjectNumber,0,total object frames(ObjectNumber)

    while mouseclick()=0

    sync

    endwhile

    while mouseclick()=1:endwhile

    stop object ObjectNumber

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

    end
See also
BASIC3D Commands Menu Index