Difference between revisions of "HPL2/Sounds"
< HPL2
Jump to navigation
Jump to search
(Upload from wiki) |
(further reading link) |
||
Line 1: | Line 1: | ||
= Sounds = | = Sounds = | ||
− | |||
General Parameters: | General Parameters: | ||
Line 12: | Line 11: | ||
* '''Min Distance''' / '''Max Distance''': Distances that will determine the space in which the sound will be faded out. Inside the radius defined by Min Distance the sound will have full volume. | * '''Min Distance''' / '''Max Distance''': Distances that will determine the space in which the sound will be faded out. Inside the radius defined by Min Distance the sound will have full volume. | ||
* '''Volume''': value for full volume. Should be a real number in the [0, 1] range. | * '''Volume''': value for full volume. Should be a real number in the [0, 1] range. | ||
+ | |||
+ | ==Further reading== | ||
+ | See [[Hpl2:Tutorials:script:CustomSounds|this article]] to learn more about the .snt files which define sounds. |
Revision as of 16:26, 24 July 2020
Sounds
General Parameters:
- Name: Name of the sound. Should be unique for all objects in map.
- Active
- Position: 3D Vector storing the position in world.
Specific Parameters:
- Sound Entity file: .snt file to be used by the sound.
- Use defaults: if active, volume and Min/Max Distance values will be read from the .snt file.
- Min Distance / Max Distance: Distances that will determine the space in which the sound will be faded out. Inside the radius defined by Min Distance the sound will have full volume.
- Volume: value for full volume. Should be a real number in the [0, 1] range.
Further reading
See this article to learn more about the .snt files which define sounds.