37 lines
640 B
Plaintext
37 lines
640 B
Plaintext
|
|
||
|
//Put this script OnClick or OnFailToOpen
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oTarget;
|
||
|
location lTarget;
|
||
|
|
||
|
object oPC = GetClickingObject();
|
||
|
|
||
|
// Cutscene functions:
|
||
|
BlackScreen(oPC);
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_crbthm0_1");
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
// Cutscene functions:
|
||
|
DelayCommand(0.1, FadeFromBlack(oPC));
|
||
|
|
||
|
}
|
||
|
|