Frictional Games Forum (read-only)

Full Version: Slime Script ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello i have made the start for the Slime script when enter area the screen shakes and the sounds come (from the real game)

so far i got this

void OnStart()
{
AddEntityCollideCallback("Player", "LookAtWithText", "LookAtWithTextEvent", true, 1); //// Start Look at the blood on the floor
AddEntityCollideCallback("Player", "SlimeActivate", "SlimeActivateEvent", true, 1); ////Slimes is Activate
}
void LookAtWithTextEvent(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("human_skull_1", 5, 5, "");
AddTimer("", 1, "t1");
}
void t1(string &in asTimer)
{
StopPlayerLookAt();
}

void SlimeActivateEvent(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("slime_3way_1", true);
SetEntityActive("slime_pile_1", true);
SetEntityActive("slime_pile_large_1", true);
SetEntityActive("slime_6way_1", true);
SetEntityActive("slime_6way_2", true);
SetEntityActive("slime_6way_4", true);
SetEntityActive("slime_6way_3", true);
SetEntityActive("slime_pile_large_2", true);
SetEntityActive("slime_pile_large_3", true);

ANY IDEA HOW THE REST OF THE SCRIPT IS???


}
Use PlaySoundAtEntity (the player counts as an entity. Use Player if you want the sound to play at the player.
StartScreenShake for the screen shaking.)

And you may wish to use SetPropActiveAndFade to make the slime materialize instead of just appearing.
How the rest of the script is? I dunno, haven't read the whole script from Amnesia TDD. Use the codes Obliviator27 wrote and if there is something specific you want you can just look it up in the TDD code