Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

12 lines
494 B
Plaintext

// SQUADL_CK_POS - Are there squad leader positions available?
int StartingConditional()
{
object oPC=GetPCSpeaker();
string sID=GetLocalString(oPC,"sTeamID");
object oMod=GetModule();
if (GetIsObjectValid(GetLocalObject(oMod,"oSquadLead"+sID+"1"))==FALSE) return TRUE;
else if (GetIsObjectValid(GetLocalObject(oMod,"oSquadLead"+sID+"2"))==FALSE) return TRUE;
else if (GetIsObjectValid(GetLocalObject(oMod,"oSquadLead"+sID+"3"))==FALSE) return TRUE;
return FALSE;
}