12 lines
494 B
Plaintext
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;
|
|
}
|