DariusArgent
Member
Hi.
I am making a script that takes an argument how many times an instance will be created based on a time interval.
The code goes like this:
However, instead of creating one instance during the time interval all instances are created when the for cycle ends at the same time.
Am I doing something wrong here?
I am making a script that takes an argument how many times an instance will be created based on a time interval.
The code goes like this:
Code:
InstancesToCreate=argument0;
for(i=0;i<timeInterval*InstancesToCreate;i++)
{
if (i mod timeInterval == 0) {
instance_create
}
}
Am I doing something wrong here?