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
Just Scripting
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Just Scripting

Okay...

But I am a bit confused. Where do you want the sound to be played? At an object or at the player?
Screw it, I'll give you both.

SOUND PLAYS AT PLAYER
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
SetEntityCallbackFunc("ItemName""PlaySound");
}

void PlaySound(string &in asEntitystring &in type)
{
PlayGuiSound("SoundFile.snt"1); //1 is the volume. Change it to whatever volume you want



SOUND PLAYS AT AN OBJECT
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
SetEntityCallbackFunc("ItemName""PlaySound");
}

void PlaySound(string &in asEntitystring &in type)
{
PlaySoundAtEntity("SoundObject""SoundFile.snt""EntityWhereTheSoundWillBeFrom"0.1ffalse);



"Veni, vidi, vici."
"I came, I saw, I conquered."
12-25-2014, 02:57 AM
Find


Messages In This Thread
Just Scripting - by ThePhrygian - 12-25-2014, 02:25 AM
RE: Just Scripting - by PutraenusAlivius - 12-25-2014, 02:57 AM
RE: Just Scripting - by ThePhrygian - 12-25-2014, 03:51 AM
RE: Just Scripting - by Mudbill - 12-25-2014, 04:41 AM
RE: Just Scripting - by Traggey - 12-25-2014, 01:33 PM



Users browsing this thread: 1 Guest(s)