Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Freeze player?
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#17
RE: Freeze player?

wont the player freeze or wont he get active?

Is all the area names in the Level Editor and ind .hps file names checked, for miss spelling?

I tryed this script myself and it is working, and you will only need one script area called KillTheLights.

You just need to ad your door frame in the KillTheLights function



void OnStart
{
AddEntityCollideCallback("Player", "KillTheLights", "KillTheLights", true, 1);

}


void KillTheLights(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
AddTimer("lights_out", 6, "lightkiller");
}

void lightkiller(string &in asTimer)
{
SetLampLit("candle_floor_1", false, true);
AddTimer("", 0.5, "Out2");
}

void Out2(string &in asTimer)
{
SetLampLit("candle_floor_2", false, true);
AddTimer("", 0.5, "Out3");
}

void Out3(string &in asTimer)
{
SetLampLit("candle_floor_3", false, true);
AddTimer("", 0.5, "Out4");
}

void Out4(string &in asTimer)
{
SetLampLit("candle_floor_4", false, true);
AddTimer("", 0.5, "Out5");
}

void Out5(string &in asTimer)
{
SetLampLit("candle_floor_5", false, true);
AddTimer("", 0.5, "Out6");
}

void Out6(string &in asTimer)
{
SetLampLit("candle_floor_6", false, true);
AddTimer("", 0.5, "Out7");
}

void Out7(string &in asTimer)
{
SetLampLit("candle_floor_7", false, true);
AddTimer("", 0.5, "Out8");
}

void Out8(string &in asTimer)
{
SetLampLit("candle_floor_8", false, true);
AddTimer("", 0.5, "Out9");
}

void Out9(string &in asTimer)
{
SetLampLit("candle_floor_9", false, true);
AddTimer("", 0.5, "Out10");
}

void Out10(string &in asTimer)
{
SetLampLit("candle_floor_10", false, true);
AddTimer("", 0.5, "Out11");
}

void Out11(string &in asTimer)
{
SetLampLit("candle_floor_11", false, true);
AddTimer("", 0.5, "Out12");
}

void Out12(string &in asTimer)
{
SetLampLit("candle_floor_12", false, true);
AddTimer("", 0.5, "ActivatePlayer");
}

void ActivatePlayer(string &in asTimer)
{
SetPlayerActive(true);
}

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 07-30-2012, 03:37 PM by Lizard.)
07-30-2012, 03:18 PM
Find


Messages In This Thread
Freeze player? - by Hartmann - 07-30-2012, 02:07 PM
RE: Freeze player? - by SilentStriker - 07-30-2012, 02:09 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 02:12 PM
RE: Freeze player? - by Lizard - 07-30-2012, 02:17 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 02:18 PM
RE: Freeze player? - by Lizard - 07-30-2012, 02:20 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 02:22 PM
RE: Freeze player? - by Lizard - 07-30-2012, 02:09 PM
RE: Freeze player? - by Adny - 07-30-2012, 02:12 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 02:32 PM
RE: Freeze player? - by SilentStriker - 07-30-2012, 02:18 PM
RE: Freeze player? - by Lizard - 07-30-2012, 02:23 PM
RE: Freeze player? - by Lizard - 07-30-2012, 02:39 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 02:42 PM
RE: Freeze player? - by Lizard - 07-30-2012, 02:51 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 03:10 PM
RE: Freeze player? - by Lizard - 07-30-2012, 03:18 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 03:38 PM
RE: Freeze player? - by Lizard - 07-30-2012, 03:39 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 03:43 PM
RE: Freeze player? - by Lizard - 07-30-2012, 03:48 PM
RE: Freeze player? - by Hartmann - 07-30-2012, 03:55 PM



Users browsing this thread: 1 Guest(s)