Hi and Happy Christmas.
I attached some much object to script. in Object Handles I could only attached object until OBJ_1980. why?
I attached some much object to script. in Object Handles I could only attached object until OBJ_1980. why?
The 3DRad community can be found at classdev.net.
both of you are absolutely correct... there is a limit... but both of you seem to have failed to recognize the obvious...
split the logic into multiple scripts... use the global arrays to make required data available between scripts...
it's all a matter of planning before you start coding...
--Mike
float startHour,startMinute,startSec, startMillisec, duration,startTime;
float endHour,endMinute,endSec, endMillisec, endTime;
int result,n;
bool isDone=false;
string strVal;
void Main()
{
if(iInitializing()){
startHour=iSystemTime(4);
startMinute=iSystemTime(5);
startSec=iSystemTime(6);
startMillisec=iSystemTime(7);
startTime=startMinute*60000+startSec*1000+startMillisec;
}
if(!isDone){
if(n<500){
result=n+n;
//iStringStr(strVal,n*2300/2,"%0.6f"); // UNCOMMENT THIS LINE TO SEE THE EFFECT OF STRING INSTUCTIONS
//iGlobalStringSet(strVal,n); // UNCOMMENT THIS LINE TO SEE THE EFFECT OF STRING INSTUCTIONS
n++;
} else {
endHour=iSystemTime(4);
endMinute=iSystemTime(5);
endSec=iSystemTime(6);
endMillisec=iSystemTime(7);
endTime=endMinute*60000+endSec*1000+endMillisec;
duration=endTime-startTime;
OUT_0=duration;
isDone=true;
}
}
}
string fromOtherScript;
int n;
void Main()
{
iGlobalStringGet(fromOtherScript,n);
if(n<100) n++;
}