31 lines
632 B
Plaintext
31 lines
632 B
Plaintext
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oTarget;
|
||
|
location lTarget;
|
||
|
|
||
|
object oPC = GetEnteringObject();
|
||
|
|
||
|
// Only fire once.
|
||
|
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
|
||
|
return;
|
||
|
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_SPn_Prty_sB2");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||
|
|
||
|
oTarget=GetFirstFactionMember(oPC, FALSE);
|
||
|
|
||
|
while (GetIsObjectValid(oTarget))
|
||
|
{
|
||
|
AssignCommand(oTarget, ClearAllActions());
|
||
|
|
||
|
AssignCommand(oTarget, ActionJumpToLocation(lTarget));
|
||
|
oTarget=GetNextFactionMember(oPC, FALSE);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|