HoS_PRC8/_mod/_module/nss/slaver_no_slaves.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

16 lines
415 B
Plaintext

int StartingConditional()
{
object oMod=GetModule();
int nSLAVEC=GetLocalInt(oMod,"nSLAVEC");
object oSlave=GetLocalObject(oMod,"oSLAVE1");
int nC=1;
if (nSLAVEC==0) return TRUE;
while(nC<=nSLAVEC)
{ // test
if (oSlave!=OBJECT_INVALID&&GetIsDead(oSlave)==FALSE) return FALSE;
nC++;
oSlave=GetLocalObject(oMod,"oSLAVE"+IntToString(nC));
} // test
return TRUE;
}