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
#7
RE: i need some help

ok, ok, so my new script should look like this:

AddEntityCollideCallback("Player", "popout1", "PlaySound", true, 0);
then

oid PlaySound(string &in Player, string &in popout1, int alState){  if(HasItem("scarykey_1") == false) return;
  PlaySoundAtEntity("scream", "21_scream10.ogg", "popout1", 0, false);}


because "scream" is my sound box thing in the editor and the second thing is the actual sound file and "popout1" is my script box where the sound area is.

correction:
AddEntityCollideCallback("Player", "popout1", "PlaySound", true, 0);
then
void PlaySound(string &in Player, string &in popout1, int alState){  if(HasItem("scarykey_1") == false) return;
  PlaySoundAtEntity("scream", "21_scream10.ogg", "popout1", 0, false);}
(This post was last modified: 05-28-2012, 05:15 PM by TheIcyPickle.)
05-28-2012, 05:13 PM
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)