Try this:
You can't pass a pointer to a function so that the pointer gets set/written to (unless you're using a bank, in which case you'd have to poke the information into the bank). You're trying to pass a sort of pointer to the function test_func and then, in a sense, set the value of that pointer to the entity handle- basically, you can't do that specific thing in Blitz.
Dim actors(10) For n=0 to 9 actors(n) = test_func() Next camera=createcamera() pointentity camera,actors(0) Function test_func(entity) entity=CreateSphere(8) PositionEntity entity,Rnd(-3,3),Rnd(-3,3),Rnd(-3,3) Return entity End
You can't pass a pointer to a function so that the pointer gets set/written to (unless you're using a bank, in which case you'd have to poke the information into the bank). You're trying to pass a sort of pointer to the function test_func and then, in a sense, set the value of that pointer to the entity handle- basically, you can't do that specific thing in Blitz.