by skydereign » Thu Jan 31, 2013 9:34 pm
Yes, but ball.clonename is just a string variable. So, it really isn't ball.clonename.x, since a string isn't a struct, and doesn't have a x variable. But, just for the same reason ball.clonename gets you the correct clonename, ball.x will get you the x of the same clone.
Using an actor's name to get variables (for instance ball.clonename) uses gE's default actor struct. In most cases, that default struct will be equal to the struct of the lowest cloneindexed actor of that name. So, ball.clonename will usually be ball.0 (or ball.n, n being the lowest cloneindex of the ball actor). But, CreateActor will update the default struct to be equal to the highest indexed clone (since a newly created clone will always be the highest indexed). This is what you are using. So the struct can never point at multiple different clones.