<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DE/setSoundMinDistance?action=history&amp;feed=atom</id>
	<title>DE/setSoundMinDistance - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DE/setSoundMinDistance?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/setSoundMinDistance&amp;action=history"/>
	<updated>2026-04-05T16:16:42Z</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/setSoundMinDistance&amp;diff=49672&amp;oldid=prev</id>
		<title>Crowd: Created page with &quot;__NOTOC__  {{DE/Client function}} Setzt für ein Sound Element die minimale Reichweite ab wann man den Sound hören kann.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt;bool set...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/setSoundMinDistance&amp;diff=49672&amp;oldid=prev"/>
		<updated>2016-10-27T22:54:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{DE/Client function}} Setzt für ein &lt;a href=&quot;/wiki/Sound&quot; class=&quot;mw-redirect&quot; title=&quot;Sound&quot;&gt;Sound&lt;/a&gt; Element die minimale Reichweite ab wann man den Sound hören kann.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool set...&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;
Setzt für ein [[Sound]] Element die minimale Reichweite ab wann man den Sound hören kann.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMinDistance ( element sound, int distanz)&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{DE/OOP||[[sound]]:setMinDistance|minDistance|getSoundMinDistance}}&lt;br /&gt;
===Benötigte Argumente=== &lt;br /&gt;
*'''sound:''' ein [[Sound]] Element.&lt;br /&gt;
*'''distanz:''' eine ganze Zahl, welche die minimale Reichweite repräsentiert ab wann der Sound hörbar ist. Der Standardwert ist 5.&lt;br /&gt;
===Rückgabe===&lt;br /&gt;
Gibt ein ''true'' zurück wenn die minimale Reichweite gesetzt wurde, ''false'' wenn nicht&lt;br /&gt;
&lt;br /&gt;
==Beispiel== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function distanceFunc(command, param)&lt;br /&gt;
  setSoundMinDistance(sound, tonumber(param))&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setdistance&amp;quot;, distanceFunc)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Siehe auch==&lt;br /&gt;
{{DE/Client_audio_functions}}&lt;br /&gt;
[[AR:setSoundMinDistance]]&lt;/div&gt;</summary>
		<author><name>Crowd</name></author>
	</entry>
</feed>