33 lines
630 B
Plaintext
33 lines
630 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_Gryl_Pty");
|
|
|
|
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);
|
|
}
|
|
|
|
}
|
|
|