Frictional Games Forum (read-only)
Slime Script ? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Slime Script ? (/thread-15562.html)



Slime Script ? - SilentHideButFine - 05-22-2012

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???


}


RE: Slime Script ? - Obliviator27 - 05-22-2012

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.


RE: Slime Script ? - Prelauncher - 05-22-2012

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