[sound_source] wont work properly

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
Connor1992
Posts: 4
Joined: April 8th, 2022, 9:05 pm

[sound_source] wont work properly

Post by Connor1992 »

I've been trying for a few hours now but can't seem to get [sound_source] to work, the sound always plays 100% regardless of the 'chance' set

Code: Select all

[event]
	id=process_sound_sources
    	first_time_only=no
    name=side 1 turn 1

[label]
	x,y=12,12
	text="sound source X,Y"
[/label]
	[sound_source]
		id=sound_crows_12_12
		sounds=AMBIENCE_crow-1.wav     # 5 sec custom sfx
		delay=9000
		chance=2
		check_fogged=no
		check_shrouded=yes
		x,y=12,12
		fade_range=3		# default is 3
		full_range=14		# default is 14
		loop=0
	[/sound_source]

[/event]
thx in advance
Last edited by Pentarctagon on July 15th, 2022, 3:25 am, edited 1 time in total.
Reason: [code]
Post Reply