Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make floor break when u go to a certain area
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#1
how to make floor break when u go to a certain area

how do u go to a certain area and the floor creaks and the floor breaks and you fall down into a secret chamber. i played a custom story and they had that in there but i forgot which custom story it was

06-19-2014, 03:49 AM
Find
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#2
RE: how to make floor break when u go to a certain area

This would take a bit of explanation if you aren't familiar with Amnesia scripting. Do you know your way around .hps and basic scripts?

Also, welcome to Frictional Games. Big Grin

And this belongs in the development support section. Tongue

(This post was last modified: 06-19-2014, 04:13 AM by MsHannerBananer.)
06-19-2014, 04:13 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#3
RE: how to make floor break when u go to a certain area

ty, but i already posted it so ill leave it like this. i watch tutorials and im 14 so i should be good and i play and watch lots of ppl playing custom stories, but do u no the scripts for it. ty

(This post was last modified: 06-19-2014, 05:35 AM by victorkim890(KimmyChimmy).)
06-19-2014, 05:33 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: how to make floor break when u go to a certain area

Well I know how to do this, but I'm pretty sure the floor is a custom entity.

"Veni, vidi, vici."
"I came, I saw, I conquered."
06-19-2014, 06:15 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#5
RE: how to make floor break when u go to a certain area

so tat means you hav to import a floor into amnesia?

06-19-2014, 06:27 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: how to make floor break when u go to a certain area

Well yes, but not just any floor. A breakable one.

But since that is a bit complex, I suggest you get out of the "floor breaking" stuff and use wooden boards.

"Veni, vidi, vici."
"I came, I saw, I conquered."
06-19-2014, 06:57 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#7
RE: how to make floor break when u go to a certain area

u mean those wooden boards you break with a hammer

06-19-2014, 07:01 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
RE: how to make floor break when u go to a certain area

Yes.

By the way, here's the script.
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""BreakingArea""BoardCreak"true1);
}

void BoardCreak(string&in asParentstring &in asChildint alState)
{
PlaySoundAtEntity("WoodCreaking""CREAKINGNOISE.snt""BreakingArea"0.15ffalse);
AddTimer("ImFaaaalling"3.34f"StartFalling");
}

void StartFalling(string &in asTimer)
{
SetPropHealth("Board"0); //Not sure of the function



"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 06-19-2014, 07:51 AM by PutraenusAlivius.)
06-19-2014, 07:51 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#9
RE: how to make floor break when u go to a certain area

it worked!!!!!!!!!!!!!!!!!!!! yesssssssssss

(This post was last modified: 06-19-2014, 11:00 PM by victorkim890(KimmyChimmy).)
06-19-2014, 10:09 PM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#10
RE: how to make floor break when u go to a certain area

MY first map! https://www.youtube.com/watch?v=Bxr6rheHGZY

06-20-2014, 03:04 AM
Find




Users browsing this thread: 4 Guest(s)