generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
36
_module/nss/on_heart_sf.nss
Normal file
36
_module/nss/on_heart_sf.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user