Frictional Games Forum (read-only)
[SOLVED]Strange script problem - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: [SOLVED]Strange script problem (/thread-5043.html)

Pages: 1 2


RE: Strange script problem - ide - 10-13-2010

The areas are correct. The trigger is supposed to be different from area where the sound is played. The scream is meant to be heard from another room.


RE: Strange script problem - SLi78 - 10-13-2010

(10-13-2010, 05:43 PM)ide Wrote: The areas are correct. The trigger is supposed to be different from area where the sound is played. The scream is meant to be heard from another room.
Ah OK, then it was my faultConfused


RE: Strange script problem - ide - 10-13-2010

No problem.
Opened the .snt file I used and found these little properties:
Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
        <Sound File="15_the_big_scream1.ogg" />
        <Sound File="15_the_big_scream2.ogg" />
        <Sound File="15_the_big_scream3.ogg" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="0.5" MinDistance="20" MaxDistance="120" Random="0.5" Interval="60" FadeEnd="False" FadeStart="False" Stream="False" Loop="True" Use3D="True" Blockable="False" BlockVolumeMul="0.8" Priority="0" />
</SOUNDENTITY>
Random="0.5"
Interval="60"
Loop="True"
Could the bolded parts be the reason for the strange behavior? Random would explain why the sound wasn't always heard and loop + interval could explain why I heard the sound randomly.

If this is the case could someone tell how I can use custom .snt in my custom story?