[quote="R0J0hound":2btwhewz]Luomu, that will work no problem. Also you can eliminate the "objref" variable and do it directly:
[code:2btwhewz]System.Create('Sprite', 1, 0, 0)
So, can this be used in the fashion of the py fix plugin?
Is there a len() operator of any fashion?
Is this correct?
for x in range(10):
System.CreateByName("spr", 1, random.randint(10,400), random.randint(10,400))
for i in range(10):
spr[i].X = random.randint(10,400)
spr[i].Y = random.randint(10,400)
Just wondering. I couldn't figure out how to use the SOL class for iterating, but the above works (not sure if it's intentional or not, or if that was always functional).