Quote:
Originally Posted by xXziroXx
Depends what you mean by "creating new objects" really. But, something along these lines:
PHP Code:
this.array = new[0];
this.array.add(this); // Would add the current object into the array
this.array.add(findPlayer("xXziroXx")); // Would add the player object (if online)
// The following example is the same as the above.
this.array = { this, findPlayer("xXziroXx") }; // Would create a two sized array with the current object, as well as the object found by the findPlayer() function.
Was that what you were looking for? 
|
I meant it as far as doing something along the lines of defining data structures in C++.
PHP Code:
typedef struct {
float x, y, z;
} 3dpoint;
3dpoint cheeselocation;
cheeselocation.x = 1;
cheeselocation.y = 2;
cheeselocation.z = 3;
Can you do anything along the lines of that in GS2?