04-15-2011, 08:39 PM
I am working on a story and I already got a friend who read a script I wrote. Only problem is I am having trouble putting it into HPL editor. Please someone help!!
(04-15-2011, 08:56 PM)TFEF Wrote: [ -> ]Make sure the sound is in .ogg format, and you should probably put in a subfolder of your custom story folder named 'sounds'.
EDIT: Damn! Ninja'd again!
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="player_bodyfall1" />
<Sound File="player_bodyfall2" />
<Sound File="player_bodyfall3" />
<Sound File="player_bodyfall4" />
<Sound File="player_bodyfall5" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="1" MaxDistance="10" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>
(04-15-2011, 09:03 PM)TFEF Wrote: [ -> ]An .snt file is just a file that gives info about the sound. For example:
Code:<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="player_bodyfall1" />
<Sound File="player_bodyfall2" />
<Sound File="player_bodyfall3" />
<Sound File="player_bodyfall4" />
<Sound File="player_bodyfall5" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="1" MaxDistance="10" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>
I think there's a specific script function that lets you play a sound without a .snt file, but I can't think of it right now. You do need a .snt file for your sound otherwise.
(04-15-2011, 10:55 PM)MrBigzy Wrote: [ -> ]PlayGuiSound is just playing the ogg sound if I remember correctly.
Fict, you have to create a .snt file for your sounds. It's basically a script file that gives the properties for the sounds; you can open them with notepad. So you have to make a new text file, put in all the info, and save as .snt, similar to .hps for regular script. The Level Editor will only insert .snt files for sounds into the level.
(04-15-2011, 10:55 PM)MrBigzy Wrote: [ -> ]PlayGuiSound is just playing the ogg sound if I remember correctly.
Fict, you have to create a .snt file for your sounds. It's basically a script file that gives the properties for the sounds; you can open them with notepad. So you have to make a new text file, put in all the info, and save as .snt, similar to .hps for regular script. The Level Editor will only insert .snt files for sounds into the level.