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
Jump scare script problem
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#8
RE: Jump scare script problem

Here you go!
void closetcorpse(string &in item)
{
SetEntityActive("closetcorpse", true);
PlaySoundAtEntity("", "guardian_activated.snt", "closetcorpse", 0, false);
AddTimer("DisableCorpse", 2.5f, "TimerDisableCorpse");    //2.5f defines how long it takes to disappear
}

void TimerDisableCorpse(string &in asTimer)
{    
    SetEntityActive("closetcorpse", false);
}
Have fun Big Grin

[Image: 18694.png]
(This post was last modified: 07-16-2012, 03:49 AM by Ongka.)
07-16-2012, 03:49 AM
Find


Messages In This Thread
Jump scare script problem - by liamthespy - 07-16-2012, 03:05 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 03:12 AM
RE: Jump scare script problem - by liamthespy - 07-16-2012, 03:24 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 03:30 AM
RE: Jump scare script problem - by liamthespy - 07-16-2012, 03:31 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 03:36 AM
RE: Jump scare script problem - by liamthespy - 07-16-2012, 03:40 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 03:49 AM
RE: Jump scare script problem - by liamthespy - 07-16-2012, 04:03 AM
RE: Jump scare script problem - by Ongka - 07-16-2012, 04:20 AM



Users browsing this thread: 1 Guest(s)