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
Slime Script ?
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#1
Slime Script ?

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


}

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
05-22-2012, 05:36 PM
Find Reply
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: Slime Script ?

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.

(This post was last modified: 05-22-2012, 06:15 PM by Obliviator27.)
05-22-2012, 06:15 PM
Find Reply
Prelauncher Offline
Senior Member

Posts: 451
Threads: 11
Joined: May 2011
Reputation: 13
#3
RE: Slime Script ?

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

Socialism (noun): A great way to run out of other people's money.
05-22-2012, 06:22 PM
Find Reply




Users browsing this thread: 1 Guest(s)