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
Scripting Problem?
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#7
RE: Scripting Problem?

void OnStart()
{
PlayMusic("01_amb_darkness.ogg", true, 1, 1, 1, false);
AddEntityCollideCallback("Player", "Jumpscare_1", "Jump1", true, 1);
AddEntityCollideCallback("Player", "lols", "Jump2", true, 1);
}

void Jump1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "24_iron_maiden.ogg", "Player", 0, false);
SetEntityActive("bro_1", true);
AddTimer("", 0.7f, "scared");
}

void Jump2(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "01_tiny1.ogg", "Player", 0, false);
SetEntityActive("deformed_man_*", true);
AddTimer("", 50.0f, "scared2");
}

void scared(string &in asTimer)
{
SetEntityActive("bro_1", false);
}

void scared2(string &in asTimer)
{
SetEntityActive("deformed_man_*", false);
}

I think the deformed man entity cannot be activated/deactivated.

"Veni, vidi, vici."
"I came, I saw, I conquered."
01-31-2014, 03:40 AM
Find


Messages In This Thread
Scripting Problem? - by TheNextLevelz - 01-30-2014, 07:36 PM
RE: Scripting Problem? - by DnALANGE - 01-30-2014, 08:34 PM
RE: Scripting Problem? - by TheNextLevelz - 01-30-2014, 09:18 PM
RE: Scripting Problem? - by Radical Batz - 01-30-2014, 09:20 PM
RE: Scripting Problem? - by daortir - 01-30-2014, 09:29 PM
RE: Scripting Problem? - by ingedoom - 01-30-2014, 10:52 PM
RE: Scripting Problem? - by PutraenusAlivius - 01-31-2014, 03:40 AM
RE: Scripting Problem? - by TheNextLevelz - 01-31-2014, 07:46 AM



Users browsing this thread: 1 Guest(s)