Quote:
Originally Posted by 12171217
And the syntax would be? o.o
|
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?
