02-03-2013, 02:04 AM
This feels silly, because I'd gotten down how to add scripted music and all of a sudden this strange thing happens! The music is not playing at all and where the script area is for the music to start, a hand appears. 0.0
Maybe I'm just looking to hard to find what's wrong and need a second pair of eyes. I've been fighting this problem for a while now.
hps file:
snt file: (named hallking.snt)
In the level editor, the script area is named hallking_area and it's callback listed as HallKing under the area tab.
Maybe I'm just looking to hard to find what's wrong and need a second pair of eyes. I've been fighting this problem for a while now.
hps file:
Code:
void OnStart ()
{
{
AddEntityCollideCallback("Player", "hallking_area", "HallKing", true, -1);
}
}
void OnEnter()
{
}
void OnLeave()
{
}
void HallKing(string &in parent, string &in child, int state)
{
PlaySoundAtEntity("HallKing", "hallking.snt", "hallking_area", 0.5, false);
snt file: (named hallking.snt)
Code:
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="hallking.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="5" MinDistance="1" MaxDistance="50" Random="0"
Interval="0" FadeEnd="False" FadeStart="False" Stream="False"
Loop="False" Use3D="false" Blockable="False" BlockVolumeMul="0.7"
Priority="5" />
</SOUNDENTITY>
In the level editor, the script area is named hallking_area and it's callback listed as HallKing under the area tab.