H
Hosein_namju
Guest
Hi
i have the code bellow in a script
vertex = argument[0];
n = vertex.instance_list_numerator; // Get Number Of Childs
if (n == 0) // If No Child Do The Self Print
global.stdy_statement += vertex.onit;
for(i = 0; i < n; i++) // If Child Do the Self & Other Print
{
global.count++;
global.stdy_statement += vertex.onit;
if(instance_exists(vertex.instance_list(i))
{
global.stdy_statement += vertex.instance_line(i).name;
script_stack(vertex.instance_list(i));
}
}
ignore the work that the code do, but if a set any value of 'n' variable, this function only run once, why ?
i have the code bellow in a script
vertex = argument[0];
n = vertex.instance_list_numerator; // Get Number Of Childs
if (n == 0) // If No Child Do The Self Print
global.stdy_statement += vertex.onit;
for(i = 0; i < n; i++) // If Child Do the Self & Other Print
{
global.count++;
global.stdy_statement += vertex.onit;
if(instance_exists(vertex.instance_list(i))
{
global.stdy_statement += vertex.instance_line(i).name;
script_stack(vertex.instance_list(i));
}
}
ignore the work that the code do, but if a set any value of 'n' variable, this function only run once, why ?
Last edited by a moderator: