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
Problem with playing sound on pickup! Please help!
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#4
RE: Problem with playing sound on pickup! Please help!

This is one way to do what you want.


void OnStart()
{
SetEntityPlayerInteractCallback("LanternName", "PickedUpLantern", true);
}

void PickedUpLantern(string &in asEntity)
{
PlaySoundAtEntity("", "amb_alert.snt", "LanternName", 0.1f, false);
}

void OnEnter()
{

}

void OnLeave()
{

}

Insanity. Static.
02-21-2012, 06:37 PM
Find


Messages In This Thread
RE: Problem with playing sound on pickup! Please help! - by Juby - 02-21-2012, 06:37 PM



Users browsing this thread: 2 Guest(s)