Initial commit
Initial commit [v9.7]
This commit is contained in:
36
_module/nss/click_crbthm0_1.nss
Normal file
36
_module/nss/click_crbthm0_1.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
//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));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user