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
#14
RE: Problem with playing sound on pickup! Please help!

(02-21-2012, 09:14 PM)Your Computer Wrote:
(02-21-2012, 08:56 PM)Zebraa Wrote: Yes. I save the changes, open Amnesia then the map but the sound doesn't play.

Okay, i rechecked the code, and i'm going to say the reason why it's not playing is because the item is no longer in the map (due to having picking it up). Try playing the sound at "Player".
Still doesn't work :/

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

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

void OnEnter()
{

}

void OnLeave()
{

}
02-22-2012, 08:43 AM
Find


Messages In This Thread
RE: Problem with playing sound on pickup! Please help! - by Zebraa - 02-22-2012, 08:43 AM



Users browsing this thread: 1 Guest(s)