Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnStart()
- {
- AddTimer("tut01", 3, "Intro");
- AddTimer("tut02", 40, "Timer01");
- SetEnemyIsHallucination("servant_grunt_1", true);
- SetEnemyIsHallucination("servant_brute_1", true);
- SetEnemyIsHallucination("enemy_suitor_1", true);
- SetSwingDoorLocked("mansion_1", true, false);
- PlayMusic("ambience_wind_eerie.ogg", true, 0.5f, 0, 0, true);
- AddEntityCollideCallback("Player" , "ScriptArea_2" , "BodyFunc2" , true , 1);
- }
- void BodyFunc2(string &in asParent , string &in asChild , int alState)
- {
- SetEntityActive("hanging_prisoner_1" , true);
- }
- AddEntityCollideCallback("Player" , "ScriptArea_1" , "BodyFunc1" , true , 1);
- void BodyFunc1(string &in asParent , string &in asChild , int alState)
- {
- int RanEve_2 = RandInt(1,3);
- if (RanEve_2 == 1)
- {
- SetEntityActive("corpse_male_1" , true);
- }
- if (RanEve_2 == 2)
- {
- SetEntityActive("corpse_male_1" , true);
- }
- if (RanEve_2 == 3)
- {
- SetEntityActive("corpse_male_1" , true);
- }
- AddTimer("tut03", 10, "Timer02");
- AddTimer("tut03", 10, "Timer03");
- }
- void Intro(string &in asTimer)
- {
- SetMessage("Example", "Entry1", 0);
- }
- void Timer01(string &in asTimer)
- {
- int RanEve_1 = RandInt(1,3);
- if (RanEve_1 == 1)
- {
- SetEntityActive("servant_grunt_1", true);
- }
- else if (RanEve_1 == 2)
- {
- SetEntityActive("servant_brute_1", true);
- }
- else if (RanEve_1 == 3)
- {
- SetEntityActive("enemy_suitor_1", true);
- }
- SetEntityActive("ScriptArea_1", true);
- SetMessage("Example", "Entry2", 0);
- PlayMusic("10_event_coming.ogg", false, 1.0f, 0, 0, true);
- StartPlayerLookAt("mansion_1", 1, 1, "");
- AddTimer("tut03",2, "TimerDoneLookAt");
- }
- void TimerDoneLookAt(string &in asTimer)
- {
- StopPlayerLookAt();
- }
- void Timer02 (string &in asTimer)
- {
- ShowEnemyPlayerPosition("servant_grunt_1");
- ShowEnemyPlayerPosition("servant_brute_1");
- ShowEnemyPlayerPosition("enemy_suitor_1");
- SetSwingDoorLocked("mansion_1", false, false);
- }
- void OnEnter()
- {
- }
- void OnLeave()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement