<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
	<id>http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlTriggerSoundLimited</id>
	<title>LlTriggerSoundLimited - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlTriggerSoundLimited"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlTriggerSoundLimited&amp;action=history"/>
	<updated>2026-06-01T03:38:22Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlTriggerSoundLimited&amp;diff=488&amp;oldid=prev</id>
		<title>Wzc：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: llTriggerSoundLimited( string sound, float volume, vector…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlTriggerSoundLimited&amp;diff=488&amp;oldid=prev"/>
		<updated>2020-07-13T10:24:55Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: llTriggerSoundLimited( string sound, float volume, vector…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{函数详情&lt;br /&gt;
|函数名 = Function: llTriggerSoundLimited( string sound, float volume, vector top_north_east, vector bottom_south_west );&lt;br /&gt;
|参数= 参数：以音量播放声音，以对象为中心但不附着在对象上，仅限于矢量top_north_east和bottom_south_west定义的框&lt;br /&gt;
&lt;br /&gt;
•字符串声音–此脚本所在的prim目录中的声音或声音的UUID&lt;br /&gt;
&lt;br /&gt;
•浮子音量–介于0.0（无声）和1.0（响亮）之间（0.0&amp;lt;=音量&amp;lt;=1.0）&lt;br /&gt;
&lt;br /&gt;
•vector top峎northïeast–区域坐标中的位置&lt;br /&gt;
&lt;br /&gt;
•矢量底部南ė西–区域坐标位置&lt;br /&gt;
&lt;br /&gt;
如果物体移动，声音就不会随之移动。&lt;br /&gt;
使用llPlaySound播放附加到对象的声音。&lt;br /&gt;
|返回值= 返回值：无&lt;br /&gt;
&lt;br /&gt;
|注意事项=如果prim的清单中缺少声音，并且它不是UUID或者不是声音，那么在DEBUG峈CHANNEL上会发出一个错误。&lt;br /&gt;
如果sound是一个UUID，那么对象没有新的资产权限后果。&lt;br /&gt;
生成的对象不会产生新的使用限制，如果资产被放在prims库存中，可能会出现这种情况。&lt;br /&gt;
如果脚本已附加，并且包裹的头像声音关闭，则调试频道上会出现一个错误：“声音触发器太多。”&lt;br /&gt;
&lt;br /&gt;
|示例=&lt;br /&gt;
示例1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
    Single Prim llTriggerSoundLimited Helper by Daemonika Nightfire.&lt;br /&gt;
 &lt;br /&gt;
    Just use this script in a single prim and make the prim as big as your room.&lt;br /&gt;
    If you then click on the prim, the sound will only be triggered inside and you will get a message with a finished LSL code.&lt;br /&gt;
    You can simply copy this code to the clipboard and use it in your actual script.&lt;br /&gt;
 &lt;br /&gt;
    Important:&lt;br /&gt;
    You cannot rotate the prim, the code needs global coordinates.&lt;br /&gt;
*/&lt;br /&gt;
 &lt;br /&gt;
string sound = &amp;quot;c704dbd8-53b1-246d-e197-b486e92da45b&amp;quot;; // use here your own sound uuid&lt;br /&gt;
 &lt;br /&gt;
////////// nothing to do below this line \\\\\\\\\\&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llSetStatus(STATUS_PHANTOM, TRUE);&lt;br /&gt;
        llSetRot(ZERO_ROTATION);&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    touch_start(integer total_number)&lt;br /&gt;
    {&lt;br /&gt;
        llSetRot(ZERO_ROTATION);&lt;br /&gt;
        vector my_pos = llGetPos();&lt;br /&gt;
        vector my_scale = llGetScale();&lt;br /&gt;
 &lt;br /&gt;
        float _X = my_scale.x/2;&lt;br /&gt;
        float _Y = my_scale.y/2;&lt;br /&gt;
        float _Z = my_scale.z/2;&lt;br /&gt;
 &lt;br /&gt;
        vector bottom_south_west = &amp;lt;my_pos.x - _X, my_pos.y - _Y, my_pos.z - _Z&amp;gt;;&lt;br /&gt;
        vector top_north_east    = &amp;lt;my_pos.x + _X, my_pos.y + _Y, my_pos.z + _Z&amp;gt;;&lt;br /&gt;
 &lt;br /&gt;
        llTriggerSoundLimited(sound, 1.0, top_north_east, bottom_south_west);&lt;br /&gt;
 &lt;br /&gt;
        llOwnerSay(&amp;quot;\nllTriggerSoundLimited(\&amp;quot;&amp;quot; + sound + &amp;quot;\&amp;quot;, 1.0, &amp;quot; + (string)top_north_east + &amp;quot;, &amp;quot; + (string)bottom_south_west + &amp;quot;);&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    on_rez(integer Dae)&lt;br /&gt;
    {&lt;br /&gt;
        llResetScript();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|相关函数=&lt;br /&gt;
[[llPlaySound]]&lt;br /&gt;
&lt;br /&gt;
[[llTriggerSound]]&lt;br /&gt;
|相关事件=无&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Wzc</name></author>
		
	</entry>
</feed>