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!
Zebraa Offline
Junior Member

Posts: 7
Threads: 1
Joined: Feb 2012
Reputation: 0
#5
RE: Problem with playing sound on pickup! Please help!

(02-21-2012, 06:37 PM)Juby Wrote: 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()
{

}
I did this, changed the lantern names and it still seems to not work.



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

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

void OnEnter()
{

}

void OnLeave()
{

}
(02-21-2012, 06:37 PM)Juby Wrote: 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()
{

}
Also, would I need to put anything into the HPL level editor?
(This post was last modified: 02-21-2012, 06:46 PM by Zebraa.)
02-21-2012, 06:43 PM
Find


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



Users browsing this thread: 1 Guest(s)