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


Messages In This Thread
RE: how to make floor break when u go to a certain area - by PutraenusAlivius - 06-19-2014, 07:51 AM



Users browsing this thread: 1 Guest(s)