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
[SOLVED]I screw up amnesia,
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: I screw up amnesia,

You say it won't work. How do you know? Do you get an error? Does nothing happen?

What I think you want to do, instead of all those for-loops is this:

PHP Code: (Select All)
void OnStart()
{
for(
int i=0i<=10i++) SetEntityConnectionStateCollideCallback("lever"+i"ConnLev"true);
}

void ConnLev(string &in asEntityint LeverState)
{
if(
LeverState == -1)
{
GivePlayerDamage(500.0ftrue);
FadeOut(0);
TeleportPlayer("Players1");
Ending();
}
}

void Ending()
{
StartCredits(""false"Ending""badfinal", -1);


Trying is the first step to success.
(This post was last modified: 04-12-2015, 08:34 PM by FlawlessHappiness.)
04-12-2015, 08:32 PM
Find


Messages In This Thread
[SOLVED]I screw up amnesia, - by Casotime1999 - 04-12-2015, 08:28 PM
RE: I screw up amnesia, - by FlawlessHappiness - 04-12-2015, 08:32 PM
RE: I screw up amnesia, - by Casotime1999 - 04-15-2015, 10:07 AM
RE: I screw up amnesia, - by FlawlessHappiness - 04-15-2015, 12:31 PM
RE: I screw up amnesia, - by Romulator - 04-15-2015, 11:30 AM
RE: I screw up amnesia, - by Romulator - 04-15-2015, 01:11 PM
RE: I screw up amnesia, - by FlawlessHappiness - 04-15-2015, 01:32 PM
RE: I screw up amnesia, - by Casotime1999 - 04-15-2015, 09:59 PM
RE: I screw up amnesia, - by FlawlessHappiness - 04-15-2015, 11:06 PM



Users browsing this thread: 1 Guest(s)