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
Help me script this!!!
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#3
RE: Help me script this!!!

Lets Name your stuff real quick

Charles1&Charles2(Left Side, they don't need these names)
Frank1&Frank2(Right Side)
Key1

Now for Charles1 and Frank1, do as Flamez3 said and check Deactivate Triggers, Then Make a Second (of the same Monster) in the same spot, but name it Charles2, or Frank2 (or whatever you want it to be called) and Make sure Deactivate triggers isn't checked. and make them inactive.

make A script box in the hallway where you want to look I named it Hall1 (in the script)

Now if you want to alter the speeds, and or Add Sounds, Etc then Go ahead, but this Should work.

////////////////////////////
// Run first time starting map
void OnStart()
{
SetEntityPlayerInteractCallback("Key", "Scare1", true);
}

void Scare1(string &in asEntity)
{
    StartPlayerLookAt("Charles1", 5, 10, "");
    AddTimer("LookAtFrank1", 1.2, "LookAtFrank1");
    SetPlayerActive(false);
}

void LookAtFrank1(string &in asTimer)
{
    StartPlayerLookAt("Frank1", 5, 10, "");
    AddTimer("LookAtHall", .8, "LookAtHall");
}

void LookAtHall(string &in asTimer)
{
    StartPlayerLookAt("Hall1", 8, 10, "");
    AddTimer("GainControl" 0.2, "GainControl");
}

void GainControl(string &in asTimer)
{
    SetEntityActive("Charles1", false);
    SetEntityActive("Frank1", false);
    SetEntityActive("Charles2", true);
    SetEntityActive("Frank2", true);
    SetPlayerActive(true);
}

-Grey Fox





Current Project
Forgotten
12-02-2011, 03:33 AM
Find


Messages In This Thread
Help me script this!!! - by FreshKorruption - 12-01-2011, 11:45 PM
RE: Help me script this!!! - by flamez3 - 12-02-2011, 01:30 AM
RE: Help me script this!!! - by GreyFox - 12-02-2011, 03:33 AM
RE: Help me script this!!! - by flamez3 - 12-02-2011, 06:33 AM
RE: Help me script this!!! - by FreshKorruption - 12-13-2011, 03:08 AM
RE: Help me script this!!! - by GreyFox - 12-02-2011, 12:39 PM
RE: Help me script this!!! - by ggstarfoxxie - 12-13-2011, 04:26 AM
RE: Help me script this!!! - by GreyFox - 12-13-2011, 04:57 AM



Users browsing this thread: 1 Guest(s)