Zebraa
Junior Member
Posts: 7
Threads: 1
Joined: Feb 2012
Reputation:
0
|
RE: Problem with playing sound on pickup! Please help!
(02-21-2012, 08:43 PM)Your Computer Wrote: (02-21-2012, 08:40 PM)Zebraa Wrote: Where is the debug menu in HPL Level Editor?
It's a feature of the game, not the level editor. You are testing the sounds in game, right? Yes. I save the changes, open Amnesia then the map but the sound doesn't play.
|
|
02-21-2012, 08:56 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: Problem with playing sound on pickup! Please help!
(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".
|
|
02-21-2012, 09:14 PM |
|
FinBanana
Junior Member
Posts: 29
Threads: 4
Joined: Jan 2012
Reputation:
0
|
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". Yeah, I had the same problem and that worked for me. I think that'll do it.
|
|
02-22-2012, 06:24 AM |
|
Zebraa
Junior Member
Posts: 7
Threads: 1
Joined: Feb 2012
Reputation:
0
|
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 |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Problem with playing sound on pickup! Please help!
dw c:
(This post was last modified: 02-22-2012, 09:03 AM by flamez3.)
|
|
02-22-2012, 09:02 AM |
|
Juby
Senior Member
Posts: 290
Threads: 2
Joined: May 2011
Reputation:
5
|
RE: Problem with playing sound on pickup! Please help!
There is no such command as "PlaySoundAtPlayer." I'll be honest and say I don't know why the sound isn't playing, but I have a feeling it has something to do with the sound you chose.
Instead of "PlaySoundAtEntity", try "PlayGuiSound("grunt/amb_alert_01.ogg", 1);"
or you can try "PlayGuiSound("grunt/amb_alert.snt", 1);"
Insanity. Static.
(This post was last modified: 02-22-2012, 12:57 PM by Juby.)
|
|
02-22-2012, 12:55 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
|
02-22-2012, 06:34 PM |
|
|