Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 13:46:27 +0000



Post From: ACSIL QUESTION REGARDING ARRAY FUNCTIONS

[2015-04-20 21:04:42]
enemyspy - Posts: 306
Bare with me as I am learning and still suck at this stuff. Any Clarity on this would be appreciated as I am running out of subgraphs:

The sc.Subgraph[].Arrays[][]

I don't understand how use this properly via the reading material. Do I need to declare these arrays in the if(sc.SetDefaults)? Would the follwoing impractical example work to output the sum of the index of two background arrays to a subgraph?

SCSubgraphRef x = sc.Subgraph[0];

if(sc.SetDefaults)
{
x.Name = "example";
return;
}
int a = 1;
if( a = 1)
{
x.Arrays[0][sc.Index]=1;
x.Arrays[1][sc.Index]=2;
}
if(x.Arrays[0][sc.Index]>0 && x.Arrays[1][sc.Index]>0)
{
x[sc.Index]= x.Arrays[0][sc.Index] + x.Arrays[1][sc.Index]
}




Date Time Of Last Edit: 2015-04-20 21:18:41