<?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=LlSetScriptState</id>
	<title>LlSetScriptState - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlSetScriptState"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlSetScriptState&amp;action=history"/>
	<updated>2026-06-01T02:49:51Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlSetScriptState&amp;diff=593&amp;oldid=prev</id>
		<title>Wzc：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 =Function: llSetScriptState( string name, integer running ); |参数=…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlSetScriptState&amp;diff=593&amp;oldid=prev"/>
		<updated>2020-08-13T07:29:11Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 =Function: llSetScriptState( string name, integer running ); |参数=…”&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: llSetScriptState( string name, integer running );&lt;br /&gt;
|参数= 参数：&lt;br /&gt;
•字符串名称–此脚本所在的prim目录中的脚本&lt;br /&gt;
•整数运行–布尔值，如果为TRUE[1]，则脚本将被启用，如果为FALSE，则脚本将被禁用&lt;br /&gt;
|返回值= 返回值：设置脚本名称的运行状态。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|注意事项=如果prim的清单中缺少name，或者它不是一个脚本，那么 [[DEBUG_CHANNEL]].上会发出一个错误。&lt;br /&gt;
无法用于重新启动遇到运行时错误的脚本[[run-time error]]。&lt;br /&gt;
不能用于启动通过[[llGiveInventory]]添加的脚本。可以启动通过[[llRemoteLoadScriptPin]]发送的、由该命令将运行状态设置为FALSE的脚本。&lt;br /&gt;
脚本似乎在其时间片结束时停止，而不是更快。如果脚本试图停止自身，那么在llSetScriptState调用之后的一些LSL代码可能会在脚本停止之前执行。&lt;br /&gt;
如果脚本被llSetScriptState暂停，然后在重新启动过程中在某个区域中重新激活，或者移动到其他区域，则脚本的内存将重置。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|示例=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//Stops the Script, at some non-deterministic time later, until invoked with TRUE, in another script&lt;br /&gt;
llSetScriptState(llGetScriptName(),FALSE);&lt;br /&gt;
// Stall until end of time slice&lt;br /&gt;
llSleep(0.1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//Starts Another Script&lt;br /&gt;
llSetScriptState(&amp;quot;somescript&amp;quot;,TRUE);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|相关函数=&lt;br /&gt;
[[llResetOtherScript]] &lt;br /&gt;
&lt;br /&gt;
[[llGetScriptState]]	&lt;br /&gt;
|相关事件=&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Wzc</name></author>
		
	</entry>
</feed>