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
Door Smash
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#4
RE: Door Smash

Here's the script :
void OnStart()
{
AddEntityCollideCallback("Player", "AreaStartPoundingDoor", "StartPoundDoor", true, 1);
}
void StartPoundDoor(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("pound", "hit_wood", "AreaPoundDoorEffect", 0, false);
CreateParticleSystemAtEntity("pound_dust","ps_hit_wood","AreaPoundDoorEffect", false);
AddTimer("PoundLoop", 3, "TimerDoorPound");
}
void TimerDoorPound(string& asTimer)
{
PlaySoundAtEntity("pound", "hit_wood", "AreaPoundDoorEffect", 0, false);

CreateParticleSystemAtEntity("pound_dust","ps_hit_wood","AreaPoundDoorEffect", false);

}

[Image: the-cabin-in-the-woods-masked-people.jpg]
07-05-2012, 11:13 AM
Find


Messages In This Thread
Door Smash - by BrooksyFC - 07-05-2012, 10:29 AM
RE: Door Smash - by No Author - 07-05-2012, 10:52 AM
RE: Door Smash - by BrooksyFC - 07-05-2012, 10:56 AM
RE: Door Smash - by No Author - 07-05-2012, 11:13 AM
RE: Door Smash - by BrooksyFC - 07-05-2012, 11:28 AM
RE: Door Smash - by No Author - 07-05-2012, 11:34 AM
RE: Door Smash - by BrooksyFC - 07-07-2012, 05:08 PM
RE: Door Smash - by No Author - 07-07-2012, 05:16 PM
RE: Door Smash - by BrooksyFC - 07-07-2012, 05:21 PM
RE: Door Smash - by No Author - 07-07-2012, 05:23 PM
RE: Door Smash - by BrooksyFC - 07-07-2012, 05:32 PM



Users browsing this thread: 1 Guest(s)