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


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Paper Blow [solved]
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#2
RE: Paper Blow

void OnStart()
{
    AddEntityCollideCallback("Player", "AreaActivate", "CollideAreaActivate", true, 1);
}

void CollideAreaActivate(string &in asParent, string &in asChild, int alState)
{
        AddTimer("blowpaper", 1.0f, "TimerPaperBlow"); //Without a timer the sound wouldn't fit.
        PlaySoundAtEntity("windsound", "scare_wind_reverse", "AreaBlow", 1.0f, false);
}

void TimerPaperBlow(string &in asTimer)
{
        CreateParticleSystemAtEntity("paper", "ps_paper_blow.ps", "AreaBlow", false);
}


Attached Files
.jpg   amnesiatut.jpg (Size: 218.73 KB / Downloads: 190)

[Image: 18694.png]
07-29-2011, 08:20 PM
Find


Messages In This Thread
Paper Blow [solved] - by clock123 - 07-29-2011, 07:48 PM
RE: Paper Blow - by Ongka - 07-29-2011, 08:20 PM
RE: Paper Blow - by clock123 - 07-29-2011, 09:01 PM
RE: Paper Blow - by Ongka - 07-29-2011, 09:08 PM
RE: Paper Blow - by clock123 - 07-29-2011, 09:47 PM
RE: Paper Blow - by Ongka - 07-29-2011, 09:48 PM
RE: Paper Blow - by clock123 - 07-29-2011, 10:14 PM



Users browsing this thread: 1 Guest(s)