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
Script Help i need some help
TheIcyPickle Offline
Member

Posts: 80
Threads: 16
Joined: Feb 2011
Reputation: 0
#5
RE: i need some help

Great! Everything is working except for 1 or 2 things.
1. Everytime I pass the script box, it makes a noise. I only want it to happen once.
2. Second, there a several different sounds that play each time I pass. I only want 21_scream10.ogg from 21_screams.snt to play.

Here is the new script.

AddEntityCollideCallback("Player", "popout1", "PlaySound", false, 0);


then


void PlaySound(string &in Player, string &in popout1, int alState)
{
if(HasItem("scarykey_1") == false) return;

PlaySoundAtEntity("21_scream10.ogg", "21_screams.snt", "popout1", 0, false);
}
05-28-2012, 07:27 AM
Find


Messages In This Thread
i need some help - by TheIcyPickle - 05-28-2012, 04:24 AM
RE: i need some help - by Putmalk - 05-28-2012, 04:34 AM
RE: i need some help - by TheIcyPickle - 05-28-2012, 06:12 AM
RE: i need some help - by Putmalk - 05-28-2012, 06:55 AM
RE: i need some help - by TheIcyPickle - 05-28-2012, 07:27 AM
RE: i need some help - by Putmalk - 05-28-2012, 04:23 PM
RE: i need some help - by TheIcyPickle - 05-28-2012, 05:13 PM
RE: i need some help - by Putmalk - 05-28-2012, 05:29 PM
RE: i need some help - by TheIcyPickle - 05-28-2012, 06:11 PM
RE: i need some help - by Putmalk - 05-28-2012, 06:21 PM
RE: i need some help - by TheIcyPickle - 05-28-2012, 06:53 PM
RE: i need some help - by Mine Turtle - 05-28-2012, 06:56 PM
RE: i need some help - by Putmalk - 05-28-2012, 07:06 PM



Users browsing this thread: 2 Guest(s)