LlResetOtherScript
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: llResetOtherScript( string name ); |
| 参数:• string name – 这个脚本的目录中有一个脚本 |
| 返回值:重置脚本名称。
在脚本重置…… 当前事件/函数将退出,而不进一步执行或返回。 所有的全局变量都被设置为默认值 清除事件队列,并停止重复发生的事件。 默认状态设置为活动状态 如果它有一个state_entry事件,那么它将被排队。 |
| 注意事项 |
|---|
| 如果名称没有出现在prim的目录中,或者它不是一个脚本,那么DEBUG_CHANNEL上就会出现错误。
如果脚本没有运行,那么此调用将不起作用,即使在脚本被设置为再次运行之后也是如此。 脚本可以用这个函数重置自己(不只是其他脚本)。 |
| 示例 |
|---|
示例1
//另一个脚本必须在相同的prim中并且必须运行
default
{
touch_start(integer num_detected)
{
llResetTime();
}
touch_end(integer num_detected)
{
if (llGetTime() < 3.0)
llSay(0, "Please click & hold for at least 3.0 seconds.");
else
llResetOtherScript("second");
}
}
|
| 相关函数 |
|---|
| llResetScript |
| 相关事件 |
|---|