<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DE/setSoundVolume?action=history&amp;feed=atom</id>
	<title>DE/setSoundVolume - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DE/setSoundVolume?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/setSoundVolume&amp;action=history"/>
	<updated>2026-04-04T17:31:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/setSoundVolume&amp;diff=55639&amp;oldid=prev</id>
		<title>Crowd: Created page with &quot;__NOTOC__  {{DE/Client function}} Diese Funktion ändert die Lautstärke eines bestimmten Sound Elements. Wenn ein Spieler Element übergeben wird, kann die Stimme kon...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/setSoundVolume&amp;diff=55639&amp;oldid=prev"/>
		<updated>2018-07-04T15:12:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{DE/Client function}} Diese Funktion ändert die Lautstärke eines bestimmten &lt;a href=&quot;/wiki/Sound&quot; class=&quot;mw-redirect&quot; title=&quot;Sound&quot;&gt;Sound&lt;/a&gt; &lt;a href=&quot;/wiki/Element&quot; title=&quot;Element&quot;&gt;Elements&lt;/a&gt;. Wenn ein Spieler Element übergeben wird, kann die Stimme kon...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{DE/Client function}}&lt;br /&gt;
Diese Funktion ändert die Lautstärke eines bestimmten [[Sound]] [[Element]]s.&lt;br /&gt;
Wenn ein Spieler Element übergeben wird, kann die Stimme kontrolliert werden.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{DE/OOP||[[sound]]:setVolume|volume|getSoundVolume}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' Das [[Sound]] [[Element]], von welchem die Lautstärke geändert werden soll.&lt;br /&gt;
*'''volume:''' Ein [[float]] Wert (Fließkommazahl), welcher die Lautstärke repräsentiert. Der muss zwischen '''0.0''' und '''1.0''' liegen.&lt;br /&gt;
&lt;br /&gt;
===Rückgabe===&lt;br /&gt;
Gibt ''true'' zurück, wenn die Lautstärke beim [[Sound]] [[Element]] erfolgreich geändert wurde, ''false'' wenn nicht.&lt;br /&gt;
&lt;br /&gt;
==Beispiel== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function wasted (killer, weapon, bodypart)&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) --Spielt wasted.mp3 vom sounds Ordner ab&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- setzt die Lautstärke auf 50%&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, localPlayer, wasted) --add the event handler &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{DE/ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Spieler Element für die Stimme hinzugefügt}}&lt;br /&gt;
&lt;br /&gt;
==Siehe auch==&lt;br /&gt;
{{DE/Client_audio_functions}}&lt;br /&gt;
[[AR:setSoundVolume]]&lt;/div&gt;</summary>
		<author><name>Crowd</name></author>
	</entry>
</feed>