37 lines
761 B
Plaintext
37 lines
761 B
Plaintext
|
#include "scenestart"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nInt;
|
||
|
int nInt2;
|
||
|
object oMod = GetModule();
|
||
|
object oPlayer;
|
||
|
object oPC = GetFirstPC();
|
||
|
|
||
|
|
||
|
nInt2 = GetLocalInt(oMod, "cutscene_flag");
|
||
|
//FloatingTextStringOnCreature(IntToString(nInt2), oPC);
|
||
|
if (nInt2!=1)
|
||
|
{
|
||
|
oPlayer = GetFirstPC();
|
||
|
while (GetIsObjectValid(oPlayer))
|
||
|
{
|
||
|
if (GetLocalInt(oPlayer, "cutscene_on")==1)
|
||
|
{
|
||
|
//FloatingTextStringOnCreature("gate 1", oPC);
|
||
|
AssignCommand(oPlayer, ClearAllActions());
|
||
|
SetLocalInt(oMod, "cutscene_flag", 1);
|
||
|
RunCutscene(oPlayer);
|
||
|
return;
|
||
|
}
|
||
|
oPlayer = GetNextPC();
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
ExecuteScript("nw_c2_default1", OBJECT_SELF);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|