Thanks!!
On a related note, is it possible to have an array of custom types so I can refer to each reference. eg.
If this worked, the x,y,z values of the fourth actor in the array are copied to p,q,r.
I'm guessing not and I'll need a workaround with each creation of a type needing a unique ID. Then I can trawl through the list from beginning to end until I find the one with the matching ID, but an array of types would be nicer!
On a related note, is it possible to have an array of custom types so I can refer to each reference. eg.
Type cuboid Field x Field y Field z End type Dim actors(20).cuboid ; array of cuboid types, whatever the syntax would be For n=0 to 19 actors(n)\x=rnd(-10,10) actors(n)\y=rnd(-10,10) actors(n)\z=rnd(-10,10) Next p=actors(3)\x q=actors(3)\y r=actors(3)\z
If this worked, the x,y,z values of the fourth actor in the array are copied to p,q,r.
I'm guessing not and I'll need a workaround with each creation of a type needing a unique ID. Then I can trawl through the list from beginning to end until I find the one with the matching ID, but an array of types would be nicer!