THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/10/2005 at 10:43, xxxxxxxx wrote:
Global variables are declared outside of functions. Don't know if this is possible in the Console, but you would do it like this (assumes that there are a maximum number of bones to allocate as an array) :
var Bones = new(array,64);
...
main()
{
}
You could also put the declaration in main() and fill the variable from the function return value:
generateBone()
{
var Bone = new(BoneObject);
...
return Bone;
}
main()
{
var Bone = new(array,64);
for (var j = 0; j < 64; j++)
{
Bone[j] = generateBone();
}
}