21 lines
783 B
Plaintext
21 lines
783 B
Plaintext
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oMember = GetFirstFactionMember(oPC);
|
|
|
|
float fDistance;
|
|
while (GetIsObjectValid(oMember))
|
|
{
|
|
fDistance = GetDistanceBetween(oMember, oPC); //Get the distance between the PC and a party member
|
|
if (oPC != oMember && (fDistance == 0.0 || fDistance > 10.0)) //If they are in different areas or the distance is longer than 10 meters...
|
|
{
|
|
//FloatingTextStringOnCreature("Your party wants to travel, but you are absent!", oMember, FALSE);
|
|
SetLocalInt(oPC, "TravelSafeguard", TRUE);
|
|
DelayCommand(6.0, DeleteLocalInt(oPC, "TravelSafeguard"));
|
|
return TRUE;
|
|
}
|
|
oMember = GetNextFactionMember(oPC);
|
|
}
|
|
return FALSE;
|
|
}
|