SET OBJECT TO OBJECT ORIENTATION This command will set the specified 3D object to point in the same direction as another 3D object.
Syntax
    SET OBJECT TO OBJECT ORIENTATION Object Number, Second Object, Flag
    SET OBJECT TO OBJECT ORIENTATION Object Number, Second Object
Parameters
    Object Number
Integer The object number
    Second Object
Integer The second object number that the command will copy direction data from
    Flag
Integer When this pivot flag is set to one, the pivot of the source object is also accounted for
Returns
This command does not return a value.
Description
The object numbers must be specified using integer values.
Example Code
    make object box 1,2,3,10

    rotate object 1,11,22,33

    position object 1,-10,0,0

    fix object pivot 1

    zrotate object 1,90

    make object box 2,2,3,10

    move camera -50

    sleep 1000

    SET OBJECT TO OBJECT ORIENTATION 2,1,1

    wait key
See also
BASIC3D Commands Menu Index