Ack! Seems that these two things don't go together. Apparently I can;t have an array of type and use a function to populate it.
or alternatively
and various variations. Is this a doomed mission or can you educated types bestow your wisdom upon me?
Type actor Field x Field y Field z End Type Dim actors.actor(10) For n=0 to 9 actors.actor(n)=test_func() next Function test_func() entity.actor=New actor entity\x = rnd(-10,10) entity\y = rnd(-10,10) entity\z = rnd(-10,10) Return entity End Function
or alternatively
Type actor Field x Field y Field z End Type Dim actors.actor(10) For n=0 to 9 actors.actor(n)=New actor next For n=0 to 9 actors.actor(n)=test_func() next Function test_func() entity.actor=New actor entity\x = rnd(-10,10) entity\y = rnd(-10,10) entity\z = rnd(-10,10) Return entity End Function
and various variations. Is this a doomed mission or can you educated types bestow your wisdom upon me?