View Single Post
  #10  
Old 01-16-2010, 03:57 AM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Quote:
Originally Posted by xXziroXx View Post
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 = { thisfindPlayer("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 xyz;
3dpoint;

3dpoint cheeselocation;

cheeselocation.1;
cheeselocation.2;
cheeselocation.3
Can you do anything along the lines of that in GS2?
Reply With Quote