NSS
void main()
{
object oPC = GetEnteringObject();
object oNPC1 = GetObjectByTag("NPC_01"); // Ãëàâàðü
object oNPC2 = GetObjectByTag("NPC_02"); // Ëó÷íèöà
object oNPC3 = GetObjectByTag("NPC_03");
object oNPC4 = GetObjectByTag("NPC_04");
object oWPpc1 = GetWaypointByTag("WP_PC_1");
object oWP1 = GetWaypointByTag("WP_NPC_01");
object oWP2 = GetWaypointByTag("WP_NPC_02");
object oWP3 = GetWaypointByTag("WP_NPC_03");
object oWP4 = GetWaypointByTag("WP_NPC_04");
object oDoor1 = GetObjectByTag("DOOR_01"); // Äâåðü Ãëàâàðÿ
object oDoor2 = GetObjectByTag("DOOR_02"); // Äâåðü ëó÷íèöû
object oDoor3 = GetObjectByTag("DOOR_03"); // Íàøà äâåðü
object oDoor4 = GetObjectByTag("DOOR_04"); // Íàøà äâåðü
if (!GetIsPC(oPC) || GetLocalInt(OBJECT_SELF, "TRIGGER") == 1)
return;
{
SetLocalInt(OBJECT_SELF, "TRIGGER", 1);
SetCutsceneMode(oPC);
AssignCommand(oPC, ClearAllActions());
AssignCommand(oNPC1, ClearAllActions());
AssignCommand(oNPC2, ClearAllActions());
AssignCommand(oNPC3, ClearAllActions());
AssignCommand(oNPC4, ClearAllActions());
ActionDoCommand(AssignCommand(oPC, ActionMoveToObject(oWPpc1)));
ActionDoCommand(AssignCommand(oPC, SetCameraFacing(280.0, 7.0, 45.0, CAMERA_TRANSITION_TYPE_SLOW)));
ActionDoCommand(AssignCommand(oPC, SpeakString("Êàê-òî ñäåñü ìðà÷íî... è... ïîäîçðèòåëüíî òèõî...")));
ActionWait(9.5);
ActionDoCommand(AssignCommand(oDoor1, ActionOpenDoor(OBJECT_SELF)));
ActionDoCommand(AssignCommand(oDoor2, ActionOpenDoor(OBJECT_SELF)));
ActionDoCommand(AssignCommand(oDoor3, ActionOpenDoor(OBJECT_SELF)));
ActionDoCommand(AssignCommand(oDoor4, ActionOpenDoor(OBJECT_SELF)));
ActionWait(1.0);
ActionDoCommand(AssignCommand(oNPC1, ActionForceFollowObject(oWP1)));
ActionDoCommand(AssignCommand(oNPC2, ActionForceFollowObject(oWP2)));
ActionDoCommand(AssignCommand(oNPC3, ActionForceFollowObject(oWP3)));
ActionDoCommand(AssignCommand(oNPC4, ActionForceFollowObject(oWP4)));
ActionWait(4.5);
ActionStartConversation(GetFirstPC(), "bandit1");
}
}
{
object oPC = GetEnteringObject();
object oNPC1 = GetObjectByTag("NPC_01"); // Ãëàâàðü
object oNPC2 = GetObjectByTag("NPC_02"); // Ëó÷íèöà
object oNPC3 = GetObjectByTag("NPC_03");
object oNPC4 = GetObjectByTag("NPC_04");
object oWPpc1 = GetWaypointByTag("WP_PC_1");
object oWP1 = GetWaypointByTag("WP_NPC_01");
object oWP2 = GetWaypointByTag("WP_NPC_02");
object oWP3 = GetWaypointByTag("WP_NPC_03");
object oWP4 = GetWaypointByTag("WP_NPC_04");
object oDoor1 = GetObjectByTag("DOOR_01"); // Äâåðü Ãëàâàðÿ
object oDoor2 = GetObjectByTag("DOOR_02"); // Äâåðü ëó÷íèöû
object oDoor3 = GetObjectByTag("DOOR_03"); // Íàøà äâåðü
object oDoor4 = GetObjectByTag("DOOR_04"); // Íàøà äâåðü
if (!GetIsPC(oPC) || GetLocalInt(OBJECT_SELF, "TRIGGER") == 1)
return;
{
SetLocalInt(OBJECT_SELF, "TRIGGER", 1);
SetCutsceneMode(oPC);
AssignCommand(oPC, ClearAllActions());
AssignCommand(oNPC1, ClearAllActions());
AssignCommand(oNPC2, ClearAllActions());
AssignCommand(oNPC3, ClearAllActions());
AssignCommand(oNPC4, ClearAllActions());
ActionDoCommand(AssignCommand(oPC, ActionMoveToObject(oWPpc1)));
ActionDoCommand(AssignCommand(oPC, SetCameraFacing(280.0, 7.0, 45.0, CAMERA_TRANSITION_TYPE_SLOW)));
ActionDoCommand(AssignCommand(oPC, SpeakString("Êàê-òî ñäåñü ìðà÷íî... è... ïîäîçðèòåëüíî òèõî...")));
ActionWait(9.5);
ActionDoCommand(AssignCommand(oDoor1, ActionOpenDoor(OBJECT_SELF)));
ActionDoCommand(AssignCommand(oDoor2, ActionOpenDoor(OBJECT_SELF)));
ActionDoCommand(AssignCommand(oDoor3, ActionOpenDoor(OBJECT_SELF)));
ActionDoCommand(AssignCommand(oDoor4, ActionOpenDoor(OBJECT_SELF)));
ActionWait(1.0);
ActionDoCommand(AssignCommand(oNPC1, ActionForceFollowObject(oWP1)));
ActionDoCommand(AssignCommand(oNPC2, ActionForceFollowObject(oWP2)));
ActionDoCommand(AssignCommand(oNPC3, ActionForceFollowObject(oWP3)));
ActionDoCommand(AssignCommand(oNPC4, ActionForceFollowObject(oWP4)));
ActionWait(4.5);
ActionStartConversation(GetFirstPC(), "bandit1");
}
}